Components
Toggle
An on/off switch.
Import
import { Toggle } from '@rinzai/zen';API reference
<Toggle>
On/off switch. A native checkbox with the switch role underneath, so keyboard, forms and screen readers work as they do for any checkbox.
| Prop | Type | Default |
|---|---|---|
onChange | ((checked: boolean) => void) | — |