Switch
A toggle switch control for boolean values with color variants.
Usage
Variants
Props
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue | boolean | - | The switch state. Use with v-model. |
variant | 'default' | 'destructive' | 'success' | 'warning' | 'info' | 'neutral' | 'default' | The color variant when checked. |
disabled | boolean | - | Whether the switch is disabled. |