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/switchFirst 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
| prop | type | default |
|---|---|---|
| defaultChecked | boolean | true |
| disabled | boolean | false |

