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

Latest commit

 

History

History
33 lines (21 loc) · 1 KB

doc-block-title.md

File metadata and controls

33 lines (21 loc) · 1 KB
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.

Screenshot of Title block

{/* ButtonDocs.mdx */}

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

<Title>This is the title</Title>

Title

import { Title } from '@storybook/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'.