Skip to content
satin

Switch

Turns a setting on or off, with immediate effect.

Send me a summary of new orders every evening.

API Reference

The Switch component wraps the Radix switch, with an optional label and description on either side.

PropTypeDefault
checked
boolean
—
defaultChecked
boolean
false
onCheckedChange
(checked: boolean) => void
—
label
ReactNode
—
description
ReactNode
—
placement
"left""right"
"left"
disabled
boolean
false