Skip to content
Binary UIKit reference Stable

Switch

Bindable binary switch with visible or aria-only labeling.

Use Switch for a setting that takes effect as soon as it changes. The thumb keeps the same inset in both states.

Interactive example

Loading interactive example

API

MemberTypeKindRequiredDefault
ariaLabelstringpropNoundefined
checkedbooleanbindingNofalse
disabledbooleanpropNofalse
labelstringpropNoundefined
onCheckedChange(checked: boolean) => voidcallbackNoundefined
sizeControlSizepropNo'md'

Examples

Source

Loading source