Switch

A toggle switch for binary choices.

Examples

Default

Props

PropTypeDefaultDescription
checkedbooleanControlled checked state
onCheckedChange(checked: boolean) => voidChange handler
disabledbooleanDisabled state