- Docs
- Components
- Switch
Switch
A control that allows the user to toggle between on and off.
Preview
Code
Installation
CLI
Manual
Anatomy
Single import
Multiple imports
Examples
Group
Preview
Code
Form
Component switch-form not found in registry.
API Reference
Root
| Prop | Type | Default |
|---|---|---|
defaultSelected | boolean | false |
isSelected | boolean | false |
onChange | function |