Addon Docs subcomponents support for sub element components
See original GitHub issueIs your feature request related to a problem? Please describe. I use Component.SubComponent for my components and I want to show prop tables for subcomponents and as far as I can see that is not supported
Describe the solution you’d like
I would suggest supporting something like:
subcomponents: {'Component.SubComponent': Component.SubComponent}
Are you able to assist bring the feature to reality? I can…
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:24 (7 by maintainers)
Top Results From Across the Web
Addon Docs subcomponents support for sub ... - Issuehunt
Is your feature request related to a problem? Please describe. I use Component.SubComponent for my components and I want to show prop tables...
Read more >DocsPage - Storybook - JS.ORG
It aggregates your stories, text descriptions, docgen comments, args tables, and code examples into a single page for each component. The best practice...
Read more >Storybook Docs with mdx support and addon knobs - Medium
Props for Subcomponents: Sometimes components require sub components to work. You can now indicate these and show the propTypes needed for each ...
Read more >Support for subcomponents | Jira Server and Data Center
We have a huge list of projects each managed by an individual group. Each group of course is working on more than one...
Read more >Input Group | Components - BootstrapVue
You can attach addons using either props, named slots and/or sub-components. Using prepend and append props. Values will be internally wrapped by a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bnannierI love the innerText of the SubComponent…
I am using this code:
and this renders (I think) correctly, or at least it is showing what I wanted:
The Accordion.doc.json file just contains the definition fo the argTypes:
What I really fail now to figure out, is where am I supposed to get the argTypes for the sub components to render the controls correctly, can you give me any clue?
Edit: forgot to mention, I did not use the displayName property, I didn’t set anything for the purpose.
This is fixed in 6.0, closing. Either: