Toggle
A two-state button that can be either on or off. Requires Alpine.js.
Usage
Outline
With text
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
pressed |
bool |
false |
Initial pressed state |
variant |
default | outline |
default |
Visual style |
size |
default | sm | lg |
default |
Control size |