页面 · Laravilt
Toggle
Boolean toggle switch
Boolean toggle switch for on/off states.
Basic Usage
php
Custom Colors
php
With Icons
php
Reactive Toggle
php
Vue Component
Uses Radix Vue Switch:
vue
API Reference
| Method | Description |
|---|---|
onColor() | Color when on |
offColor() | Color when off |
onIcon() | Icon when on |
offIcon() | Icon when off |
live() | Enable reactivity |