Storybook and args in polymorphic component #24845
Unanswered
alekseykurylev
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Storybook does not display the argument table if the component is polymorphic. I use https://www.npmjs.com/package/react-polymorphed#supporting-forwardref to create a polymorphic component (PolyRefFunction) or you can use any other solution to create a polymorphic component with support React forwardRef. Perhaps someone has faced a similar problem and knows how to solve it.
Beta Was this translation helpful? Give feedback.
All reactions