Skip to Content
DocsComponentsSwitch

Switch

A switch allows a user to turn a setting on or off.

Low power mode

Disabled

Disabled off

Disabled on

Component props

NameTypeDescription
labelstringLabel text displayed above the switch
isSelectedbooleanControlled selected state
defaultSelectedbooleanDefault selected state
isDisabledbooleanDisables the switch
onChange(isSelected: boolean) => voidCalled when state changes