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
When the story renders, going to the Docs renders the component and anything else. I'd like to know how to make it render the args and subcomponents in use.
Additional information
When I tried to set the subcomponents I get a TS error about Element is not assignable to type ComponentType<unknown>
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'd like to know how to add a compound component into a story, I tried a few things but none displays the information for the subcomponents.
Let's say that this is the compound component (CompComponent.tsx), something very basic:
For the story, that's what I have and it works, but I don't see the
autodocs
working and I don't know how to make work thesubcomponents
option.When the story renders, going to the Docs renders the component and anything else. I'd like to know how to make it render the args and subcomponents in use.
Additional information
When I tried to set the
subcomponents
I get a TS error aboutElement
is not assignable to typeComponentType<unknown>
Beta Was this translation helpful? Give feedback.
All reactions