mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
update react-mdx.stories to build
This commit is contained in:
parent
58784b67b3
commit
8c8cb73831
@ -7,18 +7,18 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs';
|
||||
|
||||
export const Button = globalThis.Components.Button;
|
||||
|
||||
export const Primary = (args) => <Button label="Primary" />;
|
||||
|
||||
export const Secondary = (args) => <Button label="Secondary" />;
|
||||
|
||||
export const Template = (args) => <Button label="From template" />;
|
||||
|
||||
<Canvas>
|
||||
<Story name="Primary">
|
||||
<Button label="Primary" />
|
||||
</Story>
|
||||
<Story name="Primary">{Primary.bind({})}</Story>
|
||||
</Canvas>
|
||||
|
||||
<Canvas>
|
||||
<Story name="Secondary">
|
||||
<Button label="Secondary" />
|
||||
</Story>
|
||||
<Story name="Secondary">{Secondary.bind({})}</Story>
|
||||
</Canvas>
|
||||
|
||||
<Canvas>
|
||||
|
Loading…
x
Reference in New Issue
Block a user