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.
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.