SwitchCopy PageStepperTableControlled or uncontrolled, with labels.PreviewCodeEmail notificationsGet notified about new activity.Marketing emailsProduct news and offers.Installation>_pnpmnpmyarnbunpnpm add krz-uiUsageimport { Switch } from "krz-ui";<Switch label="Notifications" checked={on} onCheckedChange={setOn} />API ReferencePropTypeDescriptionchecked / defaultCheckedbooleanControlled or initial state.onCheckedChange(checked: boolean) => voidCalled when toggled.label / descriptionReactNodeText next to the switch.size"sm" | "md" | "lg"Switch size.className / style / ref—className and style go on the outer element (the switch itself when there's no label); ref and native attributes go to the switch button. See Customization.classNames{ track?, thumb?, label?, description? }Extra classes for inner parts.