The checkbox component can have different shapes. Here is an example of a straight checkbox.
Show codeHide code
The checkbox component can have different shapes. Here is an example of a rounded checkbox.
Show codeHide code
The checkbox component can have different shapes. Here is an example of a curved checkbox.
Show codeHide code
The checkbox component can have different shapes. Here is an example of a full checkbox.
Show codeHide code
The checkbox component can show a disabled state. Use the disabled prop to make a checkbox disabled.
Show codeHide code
Use true-value/false-value to create custom behavior
Show codeHide code
By default, the checkbox value has only two states: true and false.
To use checkbox to select multiple options, define the v-model to an array.
Show codeHide code
You can use any colors defined with tailwind, use classes props to set your own values
Show codeHide code
Name
Type
Default
colorThe color of the checkbox. Can be 'default', 'primary', 'info', 'success', 'warning', or 'danger'
Show exampleHide example
labelThe label to display for the checkbox.
Show exampleHide example
idThe form input identifier.
Show exampleHide example
shapeThe shape of the checkbox.
Show exampleHide example
errorAn error message to display below the checkbox label.
Show exampleHide example
classesOptional CSS classes to apply to the wrapper, label, and input elements.
Show exampleHide example
true-valueThe value to set when the checkbox is checked.
Show exampleHide example
false-valueThe value to set when the checkbox is unchecked.
Show exampleHide example
disabledWhether the checkbox is disabled.
Show exampleHide example
indeterminateWhether the checkbox is in indeterminate state.