Forms
This page demonstrates the styling on base (and other common), form-related elements. It is
not intended for direct re-use. Instead, please see the components.
Form groups
Errors
Error with message
This is an error message.
< div class = " error" >
< div class = " message" > This is an error message.</ div>
</ div>
< div className = " error" >
< div className = " message" >
This is an error message.
</ div>
</ div>
Fieldsets
This is a fieldset. < fieldset> This is a fieldset.</ fieldset>
< fieldset> This is a fieldset. </ fieldset>
With legend
This is a legend This is a fieldset with a legend.< fieldset>
< legend> This is a legend</ legend>
This is a fieldset with a legend.
</ fieldset>
< fieldset>
< legend> This is a legend </ legend>
This is a fieldset with a legend.
</ fieldset>
Labels
< label> < p> This is a label.</ p> </ label>
< label>
< p> This is a label. </ p>
</ label>
Hints
< span class = " hint" > < p> This is a hint.</ p> </ span>
< span className = " hint" >
< p> This is a hint. </ p>
</ span>
Inputs
Text
Error
< div class = " error" >
< input type = " text" name = " example" />
</ div>
< div className = " error" >
< input name = " example" type = " text" />
</ div>
E-mail
Password
Number
Colour
Date
Datetime local
Time
File
Month
Week
Range
Search
Tel
URL
Checkbox
Radio
Select
Foo Bar Baz
< select name = " example" >
< option> Foo</ option>
< option> Bar</ option>
< option> Baz</ option>
</ select>
< select name = " example" >
< option> Foo </ option>
< option> Bar </ option>
< option> Baz </ option>
</ select>
Mult-select
Foo Bar Baz
< select name = " example" multiple = " " size = " 3" >
< option> Foo</ option>
< option> Bar</ option>
< option> Baz</ option>
</ select>
< select multiple name = " example" size = " 3" >
< option> Foo </ option>
< option> Bar </ option>
< option> Baz </ option>
</ select>
Textarea
< textarea name = " example" > </ textarea>
< textarea name = " example" />