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
Describe the bug
This bug is specific to Typescript. When you import Props from another Component and create a union type with current Component's Props, the Props table fails to load.
Expected behavior
Expect Props Table to be displayed for Components with complex Props Types.
Screenshots
Code snippets to Reproduce the above problem
An example Button Component (assume it is at ./src/Button.tsx):
Additional context
I tested it directly with react-docgen-typescript which I believe is what Storybook is using beneath the hood. It gives me the correct output. Have attached a screenshot of the same here:
The text was updated successfully, but these errors were encountered:
Two stories: one for Button component and another for SubmitButton. As you'll be able to see, the Button props table renders perfectly. SubmitButton on the other hand renders an empty props table.
Describe the bug
This bug is specific to Typescript. When you import Props from another Component and create a union type with current Component's Props, the Props table fails to load.
Expected behavior
Expect Props Table to be displayed for Components with complex Props Types.
Screenshots
Code snippets to Reproduce the above problem
An example Button Component (assume it is at ./src/Button.tsx):
A Submit Button Component (assume it is at ./src/SubmitButton.tsx):
Story for the above SubmitButton component (in MDX):
System:
Additional context
I tested it directly with react-docgen-typescript which I believe is what Storybook is using beneath the hood. It gives me the correct output. Have attached a screenshot of the same here:
The text was updated successfully, but these errors were encountered: