mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:31:47 +08:00
22 lines
283 B
Plaintext
22 lines
283 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
export default {
|
|
component: 'demo-button',
|
|
};
|
|
|
|
export const Primary = {
|
|
args: {
|
|
primary: true,
|
|
label: 'Button',
|
|
},
|
|
};
|
|
|
|
export const PrimaryLongName = {
|
|
args: {
|
|
...Primary.args,
|
|
label: 'Primary with a really long name',
|
|
},
|
|
};
|
|
```
|