#Is it possible generate a props table from types in Storybook 7?

2 messages · Page 1 of 1 (latest)

astral agate
#

One of my favorite features in Storybook, other than the core functionality, has been the ability to automatically generate documentation from TypeScript types. This means my docs are always DRY and up to date! ❤️

I used to just drop <Props story="Button" /> into my .mdx file, but now I'm getting this error:

The requested module '/node_modules/.cache/.vite-storybook/deps/@storybook_addon-docs.js?v=f530f772' does not provide an export named 'Props'

Is there a way to do this in Storybook 7, or do I have to write my props documentation separately from my types now?

silver cliff