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

NameDescriptionTypeDefault Value
aria-labelDefines a string value that labels the current element.string | undefinedn/a
checkedboolean | undefinedn/a
disabledboolean | undefinedn/a
onChangeChangeEventHandler<HTMLInputElement>n/a
2024 © Volvo Car Corporation