Skip to content
Component

Switch

On/off toggle with a sliding thumb.

States

API reference

checked / defaultCheckedNone
boolean

Controlled or uncontrolled on/off state.

onCheckedChangeNone
(checked: boolean) => void

Fires when toggled.

labelNone
ReactNode

Optional leading label next to the switch.

disabledfalse
boolean

Prevents interaction.

tone"default"
ComponentTone

Color used once checked.

classNameNone
string

Additional classes applied to the component root.