Skip to main content

Switch


Example

Props

NameTypeDefault ValueRequiredDescription
labelstring & ChildrenYes
disabledbooleanNo
hintPlacement"bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start"No
autoFocusbooleanNo
onBlur() => unknownNo
namestringNo
valuebooleanYes
onChange(value: boolean) => unknownYes
issuesNonEmptyArray<Children>No
hintstringNo
switchPosition"leading" | "trailing"No

Related components