storybook/docs/snippets/common/button-story-primary-composition.js.mdx
2020-10-07 12:23:34 +08:00

15 lines
223 B
Plaintext

```js
// Button.stories.js
const Primary = ButtonStory.bind({});
Primary.args = {
primary: true,
label: 'Button',
}
const Secondary = ButtonStory.bind({});
Secondary.args = {
...Primary.args,
primary: false,
}
```