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

Latest commit

 

History

History
38 lines (24 loc) · 916 Bytes

doc-block-primary.md

File metadata and controls

38 lines (24 loc) · 916 Bytes
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

{/* ButtonDocs.mdx */}

import { Meta, Primary } from '@storybook/blocks';
import * as ButtonStories from './Button.stories';

<Meta of={ButtonStories} />

<Primary />

Primary

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

Primary is configured with the following props:

name

(⛔️ Deprecated)

Type: string

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