storybook/docs/snippets/react/csf-3-example-starter.ts.mdx
2023-01-06 19:15:31 +00:00

15 lines
290 B
Plaintext

```ts
// CSF 3
import type { Meta, StoryObj } from '@storybook/react';
import { Button } from './Button';
const meta: Meta<typeof Button> = { component: Button };
export default meta;
type Story = StoryObj<typeof Button>;
export const Primary: Story = { args: { primary: true } };
```