Clow

Switch

An on/off toggle whose track lights up when on. The thumb slides; the light is the state.

Draw

draw a card
$npx shadcn@latest add @clow/switch
First time? Point @clow at the registry

Once per project, add the registry to your components.json. Then draw any card by name.

"registries": {
  "@clow": "https://clow.cards/r/{name}.json"
}
Full setup →

Playground

props
<Switch />

Examples

basic

Props

proptypedefault
defaultCheckedbooleantrue
disabledbooleanfalse