storybook/docs/api/doc-block-primary.md
Kyle Gach c03f0da058 Add Doc Blocks overview & API reference
- 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`
2023-02-21 22:38:18 -07:00

571 B

title
Primary

The Primary block displays the primary (first defined in the stories file) story, in a Story block. It is typically rendered immediately under the title in a docs entry.

Screenshot of Primary block

API

Primary

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

Primary is a React component which accepts props of type PrimaryProps.

PrimaryProps

name (deprecated)

Type: string

Primary block should only be used to render the primary story, which is automatically found.