1 import { Meta, StoryObj } from "@storybook/react"
2 import * as React from "react"
3
4 import { Badge } from "./badge"
5
6 const meta: Meta<typeof Badge> = {
7 title: "Components/Badge",
8 component: Badge,
9 parameters: {
10 layout: "centered",
11 },
12 render: ({ children, ...args }) => (
13 <Badge {...args}>{children || "Badge"}</Badge>
14 ),
15 }
16
17 export default meta
18
19 type Story = StoryObj<typeof Badge>
20
21 export const Grey: Story = {
22 args: {
23 color: "grey",
24 },
25 }
26
27 export const Green: Story = {
28 args: {
29 color: "green",
30 },
31 }
32
33 export const Red: Story = {
34 args: {
35 color: "red",
36 },
37 }
38
39 export const Blue: Story = {
40 args: {
41 color: "blue",
42 },
43 }
44
45 export const Orange: Story = {
46 args: {
47 color: "orange",
48 },
49 }
50
51 export const Purple: Story = {
52 args: {
53 color: "purple",
54 },
55 }
56
57 export const Default: Story = {
58 args: {
59 rounded: "base",
60 },
61 }
62
63 export const Rounded: Story = {
64 args: {
65 rounded: "full",
66 },
67 }
68
69 export const XXSmall: Story = {
70 args: {
71 size: "2xsmall",
72 },
73 }
74
75 export const XSmall: Story = {
76 args: {
77 size: "xsmall",
78 },
79 }
80
81 export const Small: Story = {
82 args: {
83 size: "small",
84 },
85 }
86
87 export const Base: Story = {
88 args: {
89 size: "base",
90 },
91 }
92
93 export const Large: Story = {
94 args: {
95 size: "large",
96 },
97 }