mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:22:10 +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`
571 B
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.
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.