mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
30 lines
383 B
Plaintext
30 lines
383 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
export default {
|
|
title: 'Button',
|
|
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: '📚📕📈🤓',
|
|
},
|
|
};
|
|
```
|