You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** Disclaimer** This information might be inaccurate, due to it being generated automatically
This appears to be a UI issue with the Controls panel. The boolean control should be visible by default. Based on your configuration, try adding a default value in your argTypes: typescript const meta: Meta<typeof Button> = { // ... argTypes: { disabled: { control: 'boolean', defaultValue: false // Add this line }, // ... } }; If that doesn't resolve it, check if you have defined the prop in your component's PropTypes/TypeScript interface. The control should match the component's prop type definition.
About Greptile
This response provides a starting point for your research, not a precise solution.
Help us improve! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
Describe the bug
I configured a boolean attribute like that:
but when i start Storybook i dont see the toggle
I have to press that button to see the toogle. It's pretty anoying.
The select works perfectly.
What should i do to make it work ?
Reproduction link
https://stackblitz.com/edit/github-hifnwsor?file=src%2Fcomponents%2Fbutton%2FButton.stories.tsx
Reproduction steps
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: