Controls with select and/or radio buttons #166
Unanswered
victorlmneves
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering if it's possible to define the "type" of input on the controls for each prop as Storybook does with argTypes
![image](https://user-images.githubusercontent.com/17341789/177573788-d68ba6f2-3fd8-4302-98c0-ea3a0315133f.png)
![image](https://user-images.githubusercontent.com/17341789/177574037-0c65b0fb-af3f-44f7-9513-9e06ead12f5b.png)
I saw on the example that there is something similar but for what I understood is for the state and not for props.
![image](https://user-images.githubusercontent.com/17341789/177573223-dc01c2cb-9c62-4d83-9b73-f5453dfd10f1.png)
The idea is to provide a list of options for some props that the user can choose in order to see the on the component, otherwise, the user will have to know which options are available, as you can imagine can be hard sometimes to memorize everything, especially with tons of components and several combinations.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions