Components/Actions & Inputs

Switch

@base-ui/react/switch
npx shadcn@latest add @karan-ui/switch
@base-ui/react/switch•Actions & Inputs

Switch Interactive Canvas

A control that allows the user to toggle between checked and not checked states.

Canvas

Props Controls

3 props
'default' | 'sm'
boolean
Disabled
boolean
Enabled