mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
15 lines
345 B
Plaintext
15 lines
345 B
Plaintext
```ts
|
|
// Button.stories.ts|tsx
|
|
|
|
// Replace your-framework with the name of your framework
|
|
import type { Meta } from '@storybook/<your-framework>';
|
|
|
|
import { Button } from './Button';
|
|
|
|
const meta = {
|
|
component: Button,
|
|
} satisfies Meta<typeof Button>; // 👈 Satisfies operator being used for stricter type checking.
|
|
|
|
export default meta;
|
|
```
|