Checkbox

Vue Bootstrap 5 Checkbox component

Vue checkbox is a component used to allow a user to make multiple choices that are broadly used in forms and surveys. Checkboxes are used to select one or several options in a list, while radio (option) buttons are for selecting one option from many.


Basic example

Browser default checkboxes and radios are replaced with the help of .form-check, a series of classes for both input types that improves the layout and behavior of their HTML elements, that provide greater customization and cross browser consistency. Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.


Disabled

Add the disabled attribute and the associated <label>s are automatically styled to match with a lighter color to help indicate the input’s state.


Inline

Group checkboxes or radios on the same horizontal row by adding inline property to any MDBCheckbox.


Without labels

Omit the wrapping .form-check for checkboxes and radios that have no label text by adding :formCheck="false". Remember to still provide some form of label for assistive technologies (for instance, using aria-label).


Toggle buttons

MDB’s .btn styles can be applied to <label>s, to provide checkbox style button toggling. Add :btnCheck="true" to any MDBCheckbox.