Switch
An on/off toggle control with an optional label.
npx shadcn@latest add https://ds.ptrckschrdtr.de/r/switch.json States
With label
Do
Use for settings that take effect immediately, without a separate 'Save' step.
Don't
Don't use inside a form that still needs an explicit submit — a Checkbox sets clearer expectations there.