mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
22 lines
405 B
Plaintext
22 lines
405 B
Plaintext
```ts
|
|
// Checkbox.stories.ts|tsx
|
|
|
|
// Replace your-framework with the name of your framework
|
|
import type { Meta, StoryObj } from '@storybook/your-framework';
|
|
|
|
import { Checkbox } from './Checkbox';
|
|
|
|
const meta: Meta<typeof Checkbox> = {
|
|
component: Checkbox,
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof Checkbox>;
|
|
|
|
export const Unchecked: Story = {
|
|
args: {
|
|
label: 'Unchecked',
|
|
},
|
|
};
|
|
```
|