Variable: Switch

const Switch: ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "type"> & Partial<{ color: SwitchColor; label: ReactNode; labelPlacement: SwitchLabelPlacement; onCheckedChange: SwitchChangeHandler; size: SwitchSize; }> & RefAttributes<HTMLInputElement>>

Accessible switch component built on top of a native checkbox.

Example

<Switch label="Enable notifications" />