Checkbox
Get started with the checkbox element that allows users to select one or more choices. This element is also a part of form-control
.
The checkbox element is commonly used to receive one or more options from the user in the form of a square box.
Basic Checkbox #
Use this basic example of a checkbox element in a checked and unchecked state.
Checkbox Sizes #
There must be size options. Because size matters.
Color Schemes #
As usual, just use the scheme-{color}
class to the check-control
element.
Helper Text #
Show additional explanation such as hint, link, etc.
Vertical Options #
You can align the checkboxes vertically by using a wrapper element and applying the flex flex-col
classes.
Horizontal Options #
You can align the checkboxes horizontally by using a wrapper element and applying the flex
class.
Disabled State #
Follow this examples to apply the disabled option.
Valid States #
Show feedback to users, usually right after performing validation.