Interactive Playground
Experiment with states, sizes, and themes for the Checkbox component.
Configuration
Small (sm)
Primary
Value Mapping
Changes the underlying bound value emitted by the v-model instead of strictly using booleans.
States
v-model: "yes"
Live Source Code
Implementation Examples
Select Routing Ports
Value: [
"manila",
"cebu"
]
1. Vue Array Binding
By binding the exact same array to multiple checkboxes with different value props, Vue manages the insertions and removals automatically.
2. Parent Indeterminate State
Using a writable computed property to "Select All" alongside the indeterminate prop accurately reflects partial checklist completion.
Current Value: "yes"
3. Custom True/False Values
Instead of standard booleans, you can map the checked/unchecked states to specific strings, numbers, or objects using the trueValue and falseValue props.