Back to Component Library
form React 19 + TypeScript
Switch / Toggle
Smooth toggle switch component with animated indicator.
$npx forgeui add switch
Variant:
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | false | Toggle state. |
| label | string | undefined | Switch label. |
Accessibility Standards
Role='switch' aria-checked attribute.