marclayuiv0.4.0
Components

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.

tsx
import { Switch } from "marclayui";

States

Settings list

PropTypeDefaultDescription
labelReact.ReactNode—Clickable label for the switch.
checked / onChange——Control it like any native checkbox.
…restInputHTMLAttributes—All native attributes are forwarded; role=switch is set for you.