Skip to Content

Toggle

A toggle button allows a user to toggle a selection on or off, for example switching between two states or modes.

Component props

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