Страницы · Laravilt
Toggle
On/off switch with custom values, labels, icons and colors.
An on/off switch.
Basic usage
php
Colors, icons and labels
php
Custom values
php
Reactive toggle
php
API reference
| Method | Description |
|---|---|
onColor(string) / offColor(string) | Colors per state |
onIcon(string) / offIcon(string) | Lucide icons per state |
onLabel() / offLabel() | Labels per state |
onValue(mixed) / offValue(mixed) | Stored values |
inline(bool) | Inline layout |