Switch
A toggle switch component for boolean on/off settings.
Basic Usage
Basic Switch
Enabled: false
Sizes
Switch Sizes
Available sizes: sm and md (default).
Small
Medium
Large
With Label
Switch with Label
Disabled
Disabled Switch
API Reference
| Prop | Type | Default |
|---|---|---|
checked | boolean | false |
size | "sm" | "base" | "lg" | "base" |
disabled | boolean | false |