| 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 | import type { Meta, StoryObj } from '@storybook/react';
import { Label } from './label';
const meta = {
  component: Label,
  title: 'Atoms/Forms/Label',
} satisfies Meta<typeof Label>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
  args: {
    children: 'A label',
  },
};
export const VisuallyHidden: Story = {
  args: {
    children: 'A visually hidden label',
    isHidden: true,
  },
};
export const IsRequired: Story = {
  name: 'State: Required',
  args: {
    ...Default.args,
    isRequired: true,
  },
};
export const SizeSM: Story = {
  name: 'Size: Small',
  args: {
    ...Default.args,
    size: 'sm',
  },
};
export const SizeMD: Story = {
  name: 'Size: Medium',
  args: {
    ...Default.args,
    size: 'md',
  },
};
 |