Chrome switch
A metal knob in a brushed track that anodises in your colour.
Customize
Props
Size
Installation
npx shadcn@latest add https://skinsui.dev/r/switch-chrome.jsonUsage
usage.tsx
import { Switch } from "@/components/skins/switch-chrome";<Switch label="Email updates" defaultChecked />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | None | The visible name of the setting. Without one, pass aria-label. |
| defaultChecked | boolean | false | On when it first renders. |
| disabled | boolean | false | Dims it and blocks interaction. |
| size | "sm" | "md" | "md" | Small or medium. The label grows with it. |
- labelNone
stringThe visible name of the setting. Without one, pass aria-label.
- defaultCheckedfalse
booleanOn when it first renders.
- disabledfalse
booleanDims it and blocks interaction.
- size"md"
"sm" | "md"Small or medium. The label grows with it.