Skip to content

Autodocs for a "vanilla" TypeScript component / class? #28974

Answered by Marklb
supermoos asked this question in Help
Discussion options

You must be logged in to vote

The way argTypes are parsed is unique to the individual frameworks, since different frameworks define inputs/outputs differently. Unless I just don't know what framework/pattern that you are using, you seem to be using a custom object structure that is unique to your classes. So, I don't expect there to be a an existing solution that you could just drop in. You may be able to just tweak one for your structure though, if one is close.

I don't see the @storybook/html-vite framework specifying functions to parse argTypes. A table listing the frameworks that do implement it is here: https://github.com/storybookjs/storybook/blob/next/code/addons/docs/docs/props-tables.md#known-limitations

The …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@supermoos
Comment options

Answer selected by supermoos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants