Skip to content
Cynco UI

Components · Selection

Switch

On/off switch, 36×20 (or 28×16 inside SwitchSizeProvider size="sm").

import { Switch } from "@cynco-labs/ui";

Example

Use

Settings that take effect immediately.

Props

checked/defaultChecked, onCheckedChange, disabled.

Notes

Thumb uses switch-thumb-on when on.

Source Demo source Markdown