Storybook "unknown" params, but fixed if... #5374
Unanswered
bandinopla
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If using Storybook with components generated with shadcn, in the docs, in the property description i get "unknown" in the component's arguments props, unless I change this...
to this...
Basically I have to add the
:ButtonProps
at the end of the component's destructuring assignment object. Googling arround, stack overflow hints that this issue happens whenReact.forwardRef
is used.Is this something you all have to do too?
Anyone using shadcn components with storybook, is this normal?
Beta Was this translation helpful? Give feedback.
All reactions