storybook/docs/snippets/common/button-story-primary-composition.js.mdx
2020-08-14 21:46:15 +01: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,
}
```