Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.13 KB

doc-block-stories.mdx

File metadata and controls

57 lines (34 loc) · 1.13 KB
title sidebar
Stories
order title
11
Stories

The Stories block renders the full collection of stories in a stories file.

Screenshot of Stories block

{/* prettier-ignore-start */}

{/* ButtonDocs.mdx */}

import { Meta, Stories } from '@storybook/blocks';
import * as ButtonStories from './Button.stories';

<Meta of={ButtonStories} />

<Stories />

{/* prettier-ignore-end */}

Stories

import { Stories } from '@storybook/blocks';

Stories is configured with the following props:

includePrimary

Type: boolean

Default: true

Determines if the collection of stories includes the primary (first) story.

If a stories file contains only one story and includePrimary={true}, the Stories block will render nothing to avoid a potentially confusing situation.

title

Type: string

Default: 'Stories'

Sets the heading content preceding the collection of stories.