Skip to content

Commit

Permalink
feat(ui) Add advanced list story
Browse files Browse the repository at this point in the history
  • Loading branch information
paghar committed Apr 17, 2024
1 parent e76c506 commit 96e56a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-cobras-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"flowbite-react": major
---

Advanced list story
16 changes: 16 additions & 0 deletions packages/ui/src/components/List/List.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { HiCheckCircle } from "react-icons/hi";
import type { ListProps } from "./List";
import { List } from "./List";





export default {
title: "Components/List",
component: List,
Expand Down Expand Up @@ -109,3 +113,15 @@ WithIconList.args = {
</>
),
};

export const AdvancedList = Template.bind({});
AdvancedList.storyName = "Advanced";
AdvancedList.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 96e56a9

Please sign in to comment.