Checkboxes and radios
Checkboxes and radios use are built to support HTML-based form validation and provide concise, accessible labels.
Default checkboxes and radios are improved upon with the help of .form-check
, a single class for both input types that improves the layout and behavior of their HTML elements. Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.
Checkbox
.custom-checkbox
Disabled checkboxes and radios are supported, but to provide a not-allowed
cursor on hover of the parent <label>
, you’ll need to add the disabled
attribute to the .form-check-input
. The disabled attribute will apply a lighter color to help indicate the input’s state.
Radio
.custom-checkbox