mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
24 lines
316 B
Plaintext
24 lines
316 B
Plaintext
```js
|
|
// Button.stories.js|jsx
|
|
|
|
import { Button } from './Button';
|
|
|
|
export default {
|
|
component: Button,
|
|
};
|
|
|
|
export const Primary = {
|
|
args: {
|
|
primary: true,
|
|
label: 'Button',
|
|
},
|
|
};
|
|
|
|
export const PrimaryLongName = {
|
|
args: {
|
|
...Primary.args,
|
|
label: 'Primary with a really long name',
|
|
},
|
|
};
|
|
```
|