1 import type { Meta, StoryObj } from "@storybook/react"
2
3 import { Label } from "./label"
4
5 const meta: Meta<typeof Label> = {
6 title: "Components/Label",
7 component: Label,
8 argTypes: {
9 size: {
10 control: {
11 type: "select",
12 },
13 options: ["small", "xsmall", "base", "large"],
14 },
15 weight: {
16 control: {
17 type: "select",
18 },
19 options: ["regular", "plus"],
20 },
21 },
22 parameters: {
23 layout: "centered",
24 },
25 }
26
27 export default meta
28
29 type Story = StoryObj<typeof Label>
30
31 export const BaseRegular: Story = {
32 args: {
33 size: "base",
34 weight: "regular",
35 children: "I am a label",
36 },
37 }
38
39 export const BasePlus: Story = {
40 args: {
41 size: "base",
42 weight: "plus",
43 children: "I am a label",
44 },
45 }
46
47 export const LargeRegular: Story = {
48 args: {
49 size: "large",
50 weight: "regular",
51 children: "I am a label",
52 },
53 }
54
55 export const LargePlus: Story = {
56 args: {
57 size: "large",
58 weight: "plus",
59 children: "I am a label",
60 },
61 }
62
63 export const SmallRegular: Story = {
64 args: {
65 size: "small",
66 weight: "regular",
67 children: "I am a label",
68 },
69 }
70
71 export const SmallPlus: Story = {
72 args: {
73 size: "small",
74 weight: "plus",
75 children: "I am a label",
76 },
77 }
78
79 export const XSmallRegular: Story = {
80 args: {
81 size: "xsmall",
82 weight: "regular",
83 children: "I am a label",
84 },
85 }