A toggle switch for on/off states. Built on Base UI Switch primitives.
import { SwitchRoot, SwitchThumb } from "@/components/ui/static/switch"<SwitchRoot>
<SwitchThumb />
</SwitchRoot>Notifications
Receive push notifications
checkedbooleanControlled checked state.
onCheckedChange(checked: boolean) => voidCallback when checked state changes.
defaultCheckedbooleanDefault checked state for uncontrolled usage.
disabledbooleanWhether the switch is disabled.