Back to Switch
Switch

Labeled fields

Standalone switch with top label and disabled states.

Receive product updates and release notes.

This setting is locked.

API

PropTypeDefaultDescription
checked / defaultCheckedbooleanControlled / uncontrolled on state.
onCheckedChange(checked: boolean) => voidFires when the value changes.
labelReact.ReactNodeTop field label.
textReact.ReactNodeInline label text beside the switch.
helpTextReact.ReactNodeSupplementary help text.
controlPosition"start" | "end"endInline-start/end placement (RTL-aware).
disabledbooleanNative disabled state.
View full API on Switch

More Switch examples