Skip to content

Support Passing Props to makeReactInput #8

@pstorozenko

Description

@pstorozenko

Description

Currently, it is not possible to pass props from Python to React components with makeReactInput. This feature is crucial for the flexibility and usability of the package, allowing developers to fully leverage React's capabilities from within PyShiny.

Problem example

I want to be able to create component with input_my_custom_button("id", label="Click me").

Solution

We thought about this problem and @Gotfrid proposes the #7 PR as a solution.
Please tell me if it looks good or you see tackling of this problem in a different way.

Additional note

Maybe something similar would be important for outputs as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions