mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 08:22:05 +08:00
18 lines
453 B
Plaintext
18 lines
453 B
Plaintext
```md
|
|
import { Canvas } from '@storybook/addon-docs/blocks';
|
|
|
|
export const Template = (args) => <Badge {...args } />;
|
|
|
|
<Canvas>
|
|
<Story name="warning" args={{status: 'warning', label: 'Warning'}}>
|
|
{Template.bind({})}
|
|
</Story>
|
|
<Story name="neutral" args={{status: 'neutral', label: 'Neutral' }}>
|
|
{Template.bind({})}
|
|
</Story>
|
|
<Story name="error" args={{status: 'error', label: 'Error' }}>
|
|
{Template.bind({})}
|
|
</Story>
|
|
</Canvas>
|
|
```
|