storybook/docs/snippets/common/button-story-baseline-with-satisfies.ts-4-9.mdx
2023-05-25 23:11:38 +01:00

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;
```