Switch
The iOS capsule toggle: a round knob that stretches while pressed. Accent when on (follows the palette), or the system green. Use for settings that apply immediately.
import { Switch } from "pleate/switch";Switches and settings rows
Connectivity
- Airplane Mode
- Wi-Fi
Turning on Airplane Mode turns off Wi-Fi
- Trip alertsGate changes and delays
- Quiet hours
Props
- checked / defaultChecked / onCheckedChange
State.
boolean- tone
Accent or system green when on.
"accent" | "success"default "accent"- size
32×20, 46×28, or the native 51×31.
"sm" | "md" | "lg"default "md"- label / description / labelPlacement
As Checkbox; use "start" for settings rows.