@@ -195,13 +195,13 @@ const FormsPage: FC = () => {
195
195
< div className = "flex flex-col gap-4" >
196
196
< div >
197
197
< div className = "mb-2 block" >
198
- < Label htmlFor = "username3" color = "green " value = "Your name" />
198
+ < Label htmlFor = "username3" color = "success " value = "Your name" />
199
199
</ div >
200
200
< TextInput
201
201
id = "username"
202
202
placeholder = "Bonnie Green"
203
203
required
204
- color = "green "
204
+ color = "success "
205
205
helperText = {
206
206
< >
207
207
< span className = "font-medium" > Alright!</ span > Username available!
@@ -211,13 +211,13 @@ const FormsPage: FC = () => {
211
211
</ div >
212
212
< div >
213
213
< div className = "mb-2 block" >
214
- < Label htmlFor = "username4" color = "red " value = "Your name" />
214
+ < Label htmlFor = "username4" color = "failure " value = "Your name" />
215
215
</ div >
216
216
< TextInput
217
217
id = "username4"
218
218
placeholder = "Bonnie Green"
219
219
required
220
- color = "red "
220
+ color = "failure "
221
221
helperText = {
222
222
< >
223
223
< span className = "font-medium" > Oops!</ span > Username already taken!
@@ -228,6 +228,43 @@ const FormsPage: FC = () => {
228
228
</ div >
229
229
) ,
230
230
} ,
231
+ {
232
+ title : 'Input colors' ,
233
+ code : (
234
+ < div className = "flex flex-col gap-4" >
235
+ < div >
236
+ < div className = "mb-2 block" >
237
+ < Label htmlFor = "input-gray" color = "gray" value = "Gray" />
238
+ </ div >
239
+ < TextInput id = "input-gray" placeholder = "Input Gray" required color = "gray" />
240
+ </ div >
241
+ < div >
242
+ < div className = "mb-2 block" >
243
+ < Label htmlFor = "input-info" color = "info" value = "Info" />
244
+ </ div >
245
+ < TextInput id = "input-info" placeholder = "Input Info" required color = "info" />
246
+ </ div >
247
+ < div >
248
+ < div className = "mb-2 block" >
249
+ < Label htmlFor = "input-success" color = "success" value = "Success" />
250
+ </ div >
251
+ < TextInput id = "input-success" placeholder = "Input Success" required color = "success" />
252
+ </ div >
253
+ < div >
254
+ < div className = "mb-2 block" >
255
+ < Label htmlFor = "input-failure" color = "failure" value = "Failure" />
256
+ </ div >
257
+ < TextInput id = "input-failure" placeholder = "Input Failure" required color = "failure" />
258
+ </ div >
259
+ < div >
260
+ < div className = "mb-2 block" >
261
+ < Label htmlFor = "input-warning" color = "warning" value = "Warning" />
262
+ </ div >
263
+ < TextInput id = "input-warning" placeholder = "Input Warning" required color = "warning" />
264
+ </ div >
265
+ </ div >
266
+ ) ,
267
+ } ,
231
268
{
232
269
title : 'Textarea' ,
233
270
code : (
0 commit comments