@@ -103,3 +103,60 @@ export const FullWidth: Story = {
103103 fullWidth : true ,
104104 } ,
105105} ;
106+
107+ export const Loading : Story = {
108+ args : {
109+ ...args ,
110+ loading : true ,
111+ fullWidth : true ,
112+ } ,
113+ } ;
114+
115+ export const WithGroups : Story = {
116+ args : {
117+ placeholder : "Select a food item" ,
118+ children : (
119+ < >
120+ < Select . Group name = "Fruits" >
121+ < Select . Option value = "apple" > Apple</ Select . Option >
122+ < Select . Option value = "banana" > Banana</ Select . Option >
123+ < Select . Option value = "orange" > Orange</ Select . Option >
124+ < Select . Option value = "grape" > Grape</ Select . Option >
125+ </ Select . Group >
126+ < Select . Group name = "Vegetables" >
127+ < Select . Option value = "carrot" > Carrot</ Select . Option >
128+ < Select . Option value = "broccoli" > Broccoli</ Select . Option >
129+ < Select . Option value = "spinach" > Spinach</ Select . Option >
130+ < Select . Option value = "tomato" > Tomato</ Select . Option >
131+ </ Select . Group >
132+ < Select . Group name = "Dairy" >
133+ < Select . Option value = "milk" > Milk</ Select . Option >
134+ < Select . Option value = "cheese" > Cheese</ Select . Option >
135+ < Select . Option value = "yogurt" > Yogurt</ Select . Option >
136+ </ Select . Group >
137+ </ >
138+ ) ,
139+ } ,
140+ } ;
141+
142+ export const WithGroupsAndSearch : Story = {
143+ args : {
144+ ...WithGroups . args ,
145+ search : {
146+ placeholder : "Search food items" ,
147+ emptyStateMessage : ( value ) => (
148+ < >
149+ No food items found for < b > "{ value } "</ b >
150+ </ >
151+ ) ,
152+ } ,
153+ } ,
154+ } ;
155+
156+ export const WithGroupsMultiple : Story = {
157+ args : {
158+ ...WithGroupsAndSearch . args ,
159+ multiple : true ,
160+ placeholder : "Select multiple food items" ,
161+ } ,
162+ } ;
0 commit comments