Skip to content

Story chapters #24

Description

@davestewart

Background

Often I find myself trying to arrange sets of variants in the same place on a page.

It looks like we can push multiple stories into the same page, but it takes a bit of extra styling to make it work:

Image

Proposal

What if we added a first class citizen for this?

<template>
  <Story>
    <Chapter title="..." description="...">
      <Variant>
        ...
      </Variant>
      <Variant>
        ...
      </Variant>
    </Chapter>

    <Chapter title="..." description="...">
      <Variant>
        ...
      </Variant>
      <Variant>
        ...
      </Variant>
    </Chapter>
  </Story>
</template>

Would need to think about:

  • how layout would work with the parent story
  • would each chapter inherit layout, or inherit from the above?
  • etc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions