Skip to main content

Switch


Example

Props

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

Related components