Toggle Group
A set of two-state buttons that can be toggled on or off. Requires Alpine.js.
Usage
Multiple
Composition
code
ToggleGroup
└── ToggleGroupItem
API Reference
ToggleGroup
| Prop | Type | Default | Description |
|---|---|---|---|
type |
single | multiple |
single |
Selection mode |
variant |
default | outline |
default |
Visual style for items |
size |
default | sm | lg |
default |
Control size |
default-value |
string |
— | Initial value(s); comma-separated for multiple |