Toggle theme

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.stringn/a
checkedbooleann/a
disabledbooleann/a
isValid@deprecatedbooleantrue
onChangeChangeEventHandler<HTMLInputElement>n/a
2022 © Volvo Car Corporation