@agala-labs/ui
Toggle
Switches a persistent boolean setting.
Examples
Default
Email notifications enabled
<AgalaToggle v-model="notifications" />Import
import { AgalaToggle } from '@agala-labs/ui'API
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue | boolean | — | State used by v-model. |
size | 'sm' | 'md' | 'lg' | 'md' | Control size. |
disabled | boolean | false | Disables interaction. |
class | string | — | Consumer override class. |
Events
update:modelValue(value: boolean)
Accessibility
Uses switch semantics and supports Space/Enter keyboard activation.