Skip to content

Commit

Permalink
feat(ui): add With Icon storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
paghar committed Mar 26, 2024
1 parent 3d546f7 commit bf640db
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/ui/src/components/List/List.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Meta, StoryFn } from "@storybook/react";
import type { ListProps } from "./List";
import { List } from "./List";
import { HiCheckCircle } from "react-icons/hi";

export default {
title: "Components/List",
Expand Down Expand Up @@ -96,3 +97,15 @@ HorizontalList.args = {
</>
),
};

export const WithIconList = Template.bind({});
WithIconList.storyName = 'With Icon';
WithIconList.args = {
children: (
<>
<List.Item icon={HiCheckCircle}>At least 10 characters (and up to 100 characters)</List.Item>
<List.Item icon={HiCheckCircle}>At least one lowercase character</List.Item>
<List.Item icon={HiCheckCircle}>Inclusion of at least one special character, e.g., ! @ # ?</List.Item>
</>
),
};

0 comments on commit bf640db

Please sign in to comment.