Types
Form:
Forms always include fields, and fields always contain form elements. Fields themselves may also include: inputs, standard form fields, labels, selection dropdowns, textareas, as well as: checkboxes, and message blocks.
Validation messages use messages which are formatted for use inside forms.
Elements
Field
A field is a form element containing a label and an input
Text Area
A textarea uses the default form element
Checkbox
UI Checkboxes are styled forms of standard form checkboxes.
Select
A selection dropdown, a type of ui dropdown can be used to allow for a selection from multiple choices
Radio Box
Radio boxes are styled forms of standard form radio controls.
Text Block
Text blocks have special meaning inside a form tag. Any info, error, or warning message blocks found inside a form are hidden by default.
States
Form
Loading
If a form is in loading state, it will automatically show a loading indicator:
Error
If a form is in an error state, it will automatically show any error message blocks:
Warning
If a form is in warning state, it will automatically show any warning message block:
Form Fields
Error
Individual fields may contain an error state
Disabled
Individual fields may be disabled or read only
Variations
Forms
Fluid
A form can take the width of its container
Size
A form can also be small or large
Inverted
A form on a dark background may have to invert its color scheme
Fields
Inline
A field can have its label next to instead of above it.
Date
A field can let users know they are for dates
Groups
Fields
Fields can exist together side by side
Grouped Fields
Fields can be grouped to show related choices
Inline
Multiple fields may be inline in a row