Switch
A pressed track with a raised knob that glides on a soft easing curve. Exposes role=switch and animates to the primary gradient when on.
import { Switch } from "marclayui";States
Settings list
| Prop | Type | Default | Description |
|---|---|---|---|
label | React.ReactNode | — | Clickable label for the switch. |
checked / onChange | — | — | Control it like any native checkbox. |
…rest | InputHTMLAttributes | — | All native attributes are forwarded; role=switch is set for you. |