mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:02:00 +08:00
- Remove Doc Blocks guides - Update `docs/api/argtypes` to include information that was in `docs/writing-docs/doc-block-argstable` - Update TOC - Change `Write docs > Doc blocks` from a menu to a page - Add `API > @storybook/blocks menu`
678 B
678 B
title |
---|
Title |
The Title
block serves as the primary heading for your docs entry. It is typically used to provide the component or page name.
API
Title
import { Title } from '@storybook/blocks';
Title
is a React component which accepts props of type TitleProps
.
TitleProps
children
Type: JSX.Element | string
Provides the content. Falls back to value of meta.title
(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'
.