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 experiencing an issue when using named exports for a type that is shared among multiple components. The description does not seem to be detected by Storybook and instead displays
{0: undefined,1: undefined,2: undefined,
...
}
If I include the prop type object directly it is displayed as expected.
{title: string,content: string}
I thought initially it may be a Webpack issue but I've tried starting a new storybook project with the same result.
The text was updated successfully, but these errors were encountered:
lobaak
changed the title
Incorrect description in args table when using named export for shared prop type in V6
Incorrect description in args table when using named export for shared object prop type in V6
Sep 24, 2020
Anyone come up with a solution for this? I also would like to have shared propTypes, but it looks like storybook can't view any props criteria unless it's in the same file as the component. I wonder if there could be a plugin that helps to apply your propTypes and descriptions to the custom argTypes in your story, even if I had to import that same propTypes object in to the story, it'd be valuable for centralizing propTypes.
I'm experiencing an issue when using named exports for a type that is shared among multiple components. The description does not seem to be detected by Storybook and instead displays
If I include the prop type object directly it is displayed as expected.
I thought initially it may be a Webpack issue but I've tried starting a new storybook project with the same result.
Contrived example
The text was updated successfully, but these errors were encountered: