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
I'm trying to configure a story for a Shadcn/ui component, and I see that storybook are able to pick up the Description and Controls from CVA (Class Variance Authority) using "autodocs".
However, it does not seem to pick up the Default values from the defaultVariants. Both for Default Column and Control.
Does anyone know if this should work or have a workaround for the component, without adding it to the story directly. Meaning it is picked up by autodocs.
story
component
storybook view
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I'm trying to configure a story for a Shadcn/ui component, and I see that storybook are able to pick up the Description and Controls from CVA (Class Variance Authority) using "autodocs".
However, it does not seem to pick up the Default values from the defaultVariants. Both for Default Column and Control.
Does anyone know if this should work or have a workaround for the component, without adding it to the story directly. Meaning it is picked up by autodocs.
story
component
storybook view
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions