Form Controls
Text inputs
Name
Help text sits below the control.
Email (required - type something invalid, then leave the field)
Small
Large
Read only
Disabled
Plain text
Textarea
Selects
Select
One
Two
Three
Small
Small select
Large
Large select
Multiple
One
Two
Three
Disabled
Disabled select
Checks and radios
Default checkbox
Checked checkbox
Indeterminate checkbox (set by script)
Disabled checkbox
A checkbox with a much longer label that wraps onto a second line to show that the text stays aligned beside the box rather than flowing underneath it
Help text lines up with the label.
Default radio
Checked radio
Disabled radio
Inline one
Inline two
Switches
Default switch
Checked switch
Disabled switch
Validation
Native - type fewer than 3 characters, then leave the field
Please enter at least 3 characters.
Server-side invalid (aria-invalid)
That username is already taken.
Invalid placeholder
The placeholder shows this message too.
Valid placeholder
Looks good!
Select, invalid placeholder
Choose...
Agree to terms (required - tick then untick)
You must agree before submitting.
Input groups
Username
@
Amount
£
.00
Website (required - type fewer than 3 characters, then leave the field)
https://
.co.uk
.org
Please enter at least 3 characters.
Small
Large
Floating labels
Email address
Filled
One
Two
Select
Range, file and colour
Range
Disabled range
File
Colour