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
color
The color of the checkbox. Can be 'default', 'primary', 'info', 'success', 'warning', or 'danger'
Show exampleHide example
label
The label to display for the checkbox.
Show exampleHide example
id
The form input identifier.
Show exampleHide example
shape
The shape of the checkbox.
Show exampleHide example
error
An error message to display below the checkbox label.
Show exampleHide example
classes
Optional CSS classes to apply to the wrapper, label, and input elements.
Show exampleHide example
true-value
The value to set when the checkbox is checked.
Show exampleHide example
false-value
The value to set when the checkbox is unchecked.
Show exampleHide example
disabled
Whether the checkbox is disabled.
Show exampleHide example
indeterminate
Whether the checkbox is in indeterminate state.