mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
16 lines
273 B
Plaintext
16 lines
273 B
Plaintext
```js
|
|
// CSF 2
|
|
import { Button } from './Button';
|
|
|
|
export default {
|
|
title: 'components/Button',
|
|
component: Button,
|
|
};
|
|
|
|
export const Primary = (args, { argTypes }) => ({
|
|
props: Object.keys(argTypes),
|
|
components: { Button },
|
|
});
|
|
Primary.args = { primary: true };
|
|
```
|