storybook/docs/snippets/common/checkbox-story-csf.ts.mdx
2023-05-25 21:44:48 +01:00

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',
},
};
```