1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import type { Meta, StoryObj } from '@storybook/react';
import { BooleanField } from './boolean-field';
const meta = {
component: BooleanField,
title: 'Atoms/Forms/Fields/BooleanField',
} satisfies Meta<typeof BooleanField>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Checkbox: Story = {
args: {
id: 'checkbox',
isChecked: false,
name: 'checkbox',
type: 'checkbox',
value: 'checkbox',
},
};
export const Radio: Story = {
args: {
id: 'radio',
isChecked: false,
name: 'radio',
type: 'radio',
value: 'radio',
},
};
|