Skip to content

Commit 29b8290

Browse files
authored
feat(ui): add With Icon storybook (#1316)
* feat(ui): add With Icon storybook * format(ui): run formatter
1 parent c4317a5 commit 29b8290

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/ui/src/components/List/List.stories.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Meta, StoryFn } from "@storybook/react";
2+
import { HiCheckCircle } from "react-icons/hi";
23
import type { ListProps } from "./List";
34
import { List } from "./List";
45

@@ -96,3 +97,15 @@ HorizontalList.args = {
9697
</>
9798
),
9899
};
100+
101+
export const WithIconList = Template.bind({});
102+
WithIconList.storyName = "With Icon";
103+
WithIconList.args = {
104+
children: (
105+
<>
106+
<List.Item icon={HiCheckCircle}>At least 10 characters (and up to 100 characters)</List.Item>
107+
<List.Item icon={HiCheckCircle}>At least one lowercase character</List.Item>
108+
<List.Item icon={HiCheckCircle}>Inclusion of at least one special character, e.g., ! @ # ?</List.Item>
109+
</>
110+
),
111+
};

0 commit comments

Comments
 (0)