Raw
1 import type { Meta, StoryObj } from "@storybook/react"
2
3 import { Checkbox } from "./checkbox"
4
5 const meta: Meta<typeof Checkbox> = {
6 title: "Components/Checkbox",
7 component: Checkbox,
8 parameters: {
9 layout: "centered",
10 },
11 }
12
13 export default meta
14
15 type Story = StoryObj<typeof Checkbox>
16
17 export const Default: Story = {
18 args: {},
19 }
20
21 export const Checked: Story = {
22 args: {
23 checked: true,
24 },
25 }
26
27 export const Indeterminate: Story = {
28 args: {
29 checked: "indeterminate",
30 },
31 }
32
33 export const Disabled: Story = {
34 args: {
35 disabled: true,
36 },
37 }
38
39 export const DisabledChecked: Story = {
40 args: {
41 disabled: true,
42 checked: true,
43 },
44 }
45
46 export const DisabledIndeterminate: Story = {
47 args: {
48 disabled: true,
49 checked: "indeterminate",
50 },
51 }