Interface: SwitchProps
Defined in: components/Switch/Switch.tsx:113
Props for the Switch component.
Extends
Omit<RACSwitchFieldProps,"style"|"children"|"className">
Properties
children?
optionalchildren?:ReactNode
Defined in: components/Switch/Switch.tsx:121
Label content displayed next to the switch track.
Rendered inside a data-part="label" span.
description?
optionaldescription?:ReactNode
Defined in: components/Switch/Switch.tsx:126
Supporting hint under the label — what turning this on actually commits the user to.
errorMessage?
optionalerrorMessage?:ReactNode
Defined in: components/Switch/Switch.tsx:132
Validation message, shown only while the switch is invalid. Supply the copy: a switch's rule is domain-specific ("confirm before enabling"), which is not something the platform can phrase (ADR-001).