1 import type { Meta, StoryObj } from "@storybook/react"
2 import * as React from "react"
3
4 import { BuildingTax } from "@medusajs/icons"
5 import { IconBadge } from "./icon-badge"
6
7 const meta: Meta<typeof IconBadge> = {
8 title: "Components/IconBadge",
9 component: IconBadge,
10 parameters: {
11 layout: "centered",
12 },
13 }
14
15 export default meta
16
17 type Story = StoryObj<typeof IconBadge>
18
19 export const GreyBase: Story = {
20 args: {
21 children: <BuildingTax />,
22 color: "grey",
23 size: "base",
24 },
25 }
26
27 export const GreyLarge: Story = {
28 args: {
29 children: <BuildingTax />,
30 color: "grey",
31 size: "large",
32 },
33 }
34
35 export const BlueBase: Story = {
36 args: {
37 children: <BuildingTax />,
38 color: "blue",
39
40 size: "base",
41 },
42 }
43
44 export const BlueLarge: Story = {
45 args: {
46 children: <BuildingTax />,
47 color: "blue",
48 size: "large",
49 },
50 }
51
52 export const GreenBase: Story = {
53 args: {
54 children: <BuildingTax />,
55 color: "green",
56 size: "base",
57 },
58 }
59
60 export const GreenLarge: Story = {
61 args: {
62 children: <BuildingTax />,
63 color: "green",
64 size: "large",
65 },
66 }
67
68 export const RedBase: Story = {
69 args: {
70 children: <BuildingTax />,
71 color: "red",
72 size: "base",
73 },
74 }
75
76 export const RedLarge: Story = {
77 args: {
78 children: <BuildingTax />,
79 color: "red",
80 size: "large",
81 },
82 }
83
84 export const OrangeBase: Story = {
85 args: {
86 children: <BuildingTax />,
87 color: "orange",
88 size: "base",
89 },
90 }
91
92 export const OrangeLarge: Story = {
93 args: {
94 children: <BuildingTax />,
95 color: "orange",
96 size: "large",
97 },
98 }
99
100 export const PurpleBase: Story = {
101 args: {
102 children: <BuildingTax />,
103 color: "purple",
104 size: "base",
105 },
106 }
107
108 export const PurpleLarge: Story = {
109 args: {
110 children: <BuildingTax />,
111 color: "purple",
112 size: "large",
113 },
114 }