A nice and friendly checkbox. Notice the usage of <BaseFocusLoop> to loop focus through all the checkboxes.
Show codeHide code
Here is an example using a boolean
value
Show codeHide code
Use true-value
/false-value
to create a custom behavior
Show codeHide code
You can create a static checkbox by omitting the v-model
(or model-value
)
Show codeHide code
Name
Type
Default
value
The value of the component.
Show exampleHide example
color
The color of the checkbox. Can be 'default', 'primary', 'info', 'success', 'warning', or 'danger'
Show exampleHide example
id
The form input identifier.
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 component is checked.
Show exampleHide example
false-value
The value to set when the component is unchecked.