Component
Switch
On/off toggle with a sliding thumb.
States
API reference
checked / defaultCheckedNone
booleanControlled or uncontrolled on/off state.
onCheckedChangeNone
(checked: boolean) => voidFires when toggled.
labelNone
ReactNodeOptional leading label next to the switch.
disabledfalse
booleanPrevents interaction.
tone"default"
ComponentToneColor used once checked.
classNameNone
stringAdditional classes applied to the component root.
