Back to Switch
Switch

Control position

Inline-start vs inline-end switch placement.

Control at inline-start.

Control at inline-end (default for settings rows).

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