Open lobaak opened 4 years ago
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