Appearance
Toggle
A customizable toggle.
The Component
Component API
Props
| Name | Default | Description | Type |
|---|---|---|---|
| modelValue | false | The value of the toggle | Boolean |
| small | false | The size of the toggle | Boolean |
| enabledClass | bg-gray-500 | The color of the toggle when on | String |
| disabledClass | bg-gray-300 | The color of the toggle when off | String |
Events
| Name | Argument | Description |
|---|---|---|
| @update:model-value | true/false | Emitted when toggle is clicked |
Dependencies
- Headless UI