Open stramel opened 5 years ago
Where are you accessing the documentation for hooks in Storybook? It didn't occur to me there was a way to do that.
@strothj Using the @storybook/addon-info
plugin for documentation. (https://github.com/storybooks/storybook/tree/master/addons/info)
Hooks are relatively unsupported AFAICT. Mostly just creating wrapping components in the story currently. The docs were still visible though.
Can you post the source of the story file? I want to get a better idea of what’s going on.
@strothj here is the story and hook https://gist.github.com/stramel/96aac465ed0fffba9cd2056ec8cd7580
UPDATE: Updated with my storybook config too.
This is based on a Typescript CRA project
My code looks like:
It generates a "description" of:
I would expect it to pull the description out and parse the params/returns into the props table.