Toggle🔗

Toggle component is a styled wrapper to a checkbox / label pair. It accepts a "checked" prop, and a "onToggle" prop that is triggered by the checkbox onChange event.

Default example🔗

disabled example🔗

Props - Toggle🔗

Name
Description
Type
Default Value
aria-labelDefines a string value that labels the current element.string | undefinedn/a
checkedboolean | undefinedn/a
disabledboolean | undefinedn/a
onChangeChangeEventHandler<HTMLInputElement>n/a
2022 © Volvo Car Corporation