Skip to content

Better way to demo Components #5

@eisisig

Description

@eisisig

I think we need a better way/workflow to demo Components. Some components can be easily demoed with just the fixtures. But some depend on sibling/child components (Tab/TabPane, Accordion/AccordionPane, RadioList/Radio) etc...

Now we pick up all Components and fixtures. So if there is a Demo Component AND a fixture for it we display it. BUT the docs are then from the Demo Component and not the actual Component you are demoing.

We could do some auto-detecting of demo Components with some naming convention so

Accordion.js
AccordionPane.js
AccordionDemo.js
// or ---
Radio.js
RadioList.js
RadioList-demo.js

Then we would attach the demo info to the Component when we are fetching all the Components on start

I'll add to this when I think of something

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions