Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Feature to combine stories to another story #78

Open
jantimon opened this issue Mar 31, 2020 · 0 comments
Open

Feature to combine stories to another story #78

jantimon opened this issue Mar 31, 2020 · 0 comments

Comments

@jantimon
Copy link
Contributor

jantimon commented Mar 31, 2020

There are two very different stories:

  • pure ui components
    • Text
    • Image
    • Accordion
    • ...
  • integration stories
    • a teaser
    • an entire landing page
    • a checkout workflow
    • a register user form
    • ...

Usually everyones loves to write ui-components and shows how to implement a button.

However the complexity of responsive behaviour, sticky behaviour and other parts becomes easier to see once those ui-components are stitched together to integration stories.

For other storybook implementations you can do that quite easily with following code:

export const RichText = /* ... */
export const Text = /* ... */
export const Image = /* ... */

export const Teaser = () => RichText + Image; 

That's one great strength of the storybook format.

What do you think of add this also for aem storybook?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant