Skip to content

Commit dafc988

Browse files
docs(Form): add input colors (#485) (#532)
1 parent 21dab1f commit dafc988

File tree

1 file changed

+41
-4
lines changed

1 file changed

+41
-4
lines changed

src/docs/pages/FormsPage.tsx

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ const FormsPage: FC = () => {
195195
<div className="flex flex-col gap-4">
196196
<div>
197197
<div className="mb-2 block">
198-
<Label htmlFor="username3" color="green" value="Your name" />
198+
<Label htmlFor="username3" color="success" value="Your name" />
199199
</div>
200200
<TextInput
201201
id="username"
202202
placeholder="Bonnie Green"
203203
required
204-
color="green"
204+
color="success"
205205
helperText={
206206
<>
207207
<span className="font-medium">Alright!</span> Username available!
@@ -211,13 +211,13 @@ const FormsPage: FC = () => {
211211
</div>
212212
<div>
213213
<div className="mb-2 block">
214-
<Label htmlFor="username4" color="red" value="Your name" />
214+
<Label htmlFor="username4" color="failure" value="Your name" />
215215
</div>
216216
<TextInput
217217
id="username4"
218218
placeholder="Bonnie Green"
219219
required
220-
color="red"
220+
color="failure"
221221
helperText={
222222
<>
223223
<span className="font-medium">Oops!</span> Username already taken!
@@ -228,6 +228,43 @@ const FormsPage: FC = () => {
228228
</div>
229229
),
230230
},
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+
},
231268
{
232269
title: 'Textarea',
233270
code: (

0 commit comments

Comments
 (0)