Skip to content

Commit fc8d8b5

Browse files
committed
chore: add TagInput stories
1 parent 3b430bc commit fc8d8b5

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import type { Meta, StoryObj } from "@storybook/react";
2+
import { TagInput } from "./TagInput";
3+
4+
const meta: Meta<typeof TagInput> = {
5+
title: "components/TagInput",
6+
component: TagInput,
7+
decorators: [(Story) => <div style={{ maxWidth: "500px" }}>{Story()}</div>],
8+
};
9+
10+
export default meta;
11+
type Story = StoryObj<typeof TagInput>;
12+
13+
export const Default: Story = {
14+
args: {
15+
values: [],
16+
},
17+
};
18+
19+
export const WithEmptyTags: Story = {
20+
args: {
21+
values: ["", "", ""],
22+
},
23+
};
24+
25+
export const WithLongTags: Story = {
26+
args: {
27+
values: ["this-is-a-very-long-long-long-tag-that-might-wrap", "another-long-tag-example", "short"],
28+
},
29+
};
30+
31+
export const WithManyTags: Story = {
32+
args: {
33+
values: [
34+
"tag1",
35+
"tag2",
36+
"tag3",
37+
"tag4",
38+
"tag5",
39+
"tag6",
40+
"tag7",
41+
"tag8",
42+
"tag9",
43+
"tag10",
44+
"tag11",
45+
"tag12",
46+
"tag13",
47+
"tag14",
48+
"tag15",
49+
"tag16",
50+
"tag17",
51+
"tag18",
52+
"tag19",
53+
"tag20",
54+
],
55+
},
56+
};

0 commit comments

Comments
 (0)