-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Components: methods not displayed #17147
Comments
This was working in a previous version of SB-WC, many of my components have public methods that need to be documented so +1 on this |
@thepassle @gaetanmaisse perhaps a follow-up is needed for #15138 ? |
|
Hello, is there an update on how to display methods please? |
We ran into a similar issue. A brief analysis seems to indicate that the problem is twofold:
storybook/code/renderers/web-components/src/docs/custom-elements.ts Lines 80 to 89 in 7bcf944
We could live with the fact that properties with clashing names are overridden, but that might not be the case for everyone. Would prefixing the property key with its kind in FYI @dreamora |
Same thing for me. I need to manually add methods in ArgTypes and duplicate the description from JSDocs in order to have the methods displayed in the table
|
Describe the bug
I updated my
custom-elements.json
to follow the new format introduced in Storybook 6.4,everything is displayed properly except methods who doesn't seems to be extracted from the file.
exemple of a method in the custom-elements.json.
To Reproduce
System
Additional context
I don't know if its related but methods doesn't seems to be exported here.
https://github.com/storybookjs/storybook/blob/next/addons/docs/src/frameworks/web-components/custom-elements.ts#L137
The text was updated successfully, but these errors were encountered: