Back to Storybook

Title

docs/api/doc-blocks/doc-block-title.mdx

10.3.6952 B
Original Source

The Title block serves as the primary heading for your docs entry. It is typically used to provide the component or page name.

md
import { Title } from '@storybook/addon-docs/blocks';

<Title>This is the title</Title>

Title

js
import { Title } from '@storybook/addon-docs/blocks';

Title is configured with the following props:

children

Type: JSX.Element | string

Provides the content. Falls back to value of title in an attached CSF file (or value derived from autotitle), trimmed to the last segment. For example, if the title value is 'path/to/components/Button', the default content is 'Button'.

of

Type: CSF file exports

Specifies which meta's title is displayed.