mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
29 lines
364 B
Plaintext
29 lines
364 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
export default {
|
|
component: 'demo-button',
|
|
};
|
|
|
|
export const Primary = {
|
|
args: {
|
|
background: '#ff0',
|
|
label: 'Button',
|
|
},
|
|
};
|
|
|
|
export const Secondary = {
|
|
args: {
|
|
...Primary.args,
|
|
label: '😄👍😍💯',
|
|
},
|
|
};
|
|
|
|
export const Tertiary = {
|
|
args: {
|
|
...Primary.args,
|
|
label: '📚📕📈🤓',
|
|
},
|
|
};
|
|
```
|