File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/ui/src/components/List Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
import type { Meta , StoryFn } from "@storybook/react" ;
2
+ import { HiCheckCircle } from "react-icons/hi" ;
2
3
import type { ListProps } from "./List" ;
3
4
import { List } from "./List" ;
4
5
@@ -96,3 +97,15 @@ HorizontalList.args = {
96
97
</ >
97
98
) ,
98
99
} ;
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
+ } ;
You can’t perform that action at this time.
0 commit comments