Skip to content

Commit 2e26fc2

Browse files
committed
chore: add stories
1 parent a07d4d0 commit 2e26fc2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

site/src/components/Badge/Badge.stories.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2+
import { Settings, TriangleAlert } from "lucide-react";
23
import { Badge } from "./Badge";
34

45
const meta: Meta<typeof Badge> = {
@@ -13,3 +14,25 @@ export default meta;
1314
type Story = StoryObj<typeof Badge>;
1415

1516
export const Default: Story = {};
17+
18+
export const Warning: Story = {
19+
args: {
20+
variant: "warning",
21+
},
22+
};
23+
24+
export const SmallWithIcon: Story = {
25+
args: {
26+
variant: "default",
27+
size: "sm",
28+
children: <>{<Settings />} Preset</>,
29+
},
30+
};
31+
32+
export const MediumWithIcon: Story = {
33+
args: {
34+
variant: "warning",
35+
size: "md",
36+
children: <>{<TriangleAlert />} Immutable</>,
37+
},
38+
};

0 commit comments

Comments
 (0)