Checkbox
Checkboxes are a type of inputs that are used to select multiple options.
There are two types of checkboxes and various states.
Types
Productive a productive checkbox is a regular sized checkbox with a label font size. Emotive an emotive checkbox has a bigger box and font size to catch the users’ attention
States
The table below shows the states of the checkboxes for both productive and emotive. For theme responsive, just switch themes to view them.
States | Emotive Type: body-emotive Checkbox: 24px Marin-right: 16px Font-size: var(–base-font-size) |
Productive Type: body-productive Checkbox: 16px Marin-right: 8px Font-size: var(–text-xsm) |
---|---|---|
:enabled (:passive) | ||
:hover | ||
:focus | ||
:selected | ||
:hover-selected | ||
:focus-selected | ||
:disabled-selected | ||
:disabled-enabled | ||
:skeleton | ||
:readOnly-selected | ||
:readOnly |
Checkbox groups
Versions | Emotive Type: body-emotive Checkbox: 24px Marin-right: 16px Font-size: var(–base-font-size) |
Productive Type: body-productive Checkbox: 16px Marin-right: 8px Font-size: var(–text-xsm) |
---|---|---|
:Margin-bottom: 16px |
Usage
Checkboxes are used for multiple choices users can select for. Each checkbox works independently from other checkboxes in the list. Checking an adidtional box will not affect other boxes in the list.
When to use
- Forms
- Filtering and batch action
- Terms and conditions
- Lists with sub-selections
When not to use If you require a user to only select one option from the list - use radio buttons instead.