Checkbox

VCC UI Checkbox is deprecated

Read the documentation on its replacement, which should be used for any new development.

The Checkbox component is controlled component input field that handles user events. For more on controlled components see here.

All props, except for extend, will be passed through.

Example

Invalid state

Props - Checkbox

NameDescriptionTypeDefault Value
checkedboolean | undefinedn/a
descriptionRenders a description text underneath the input.string | undefinedn/a
errorMessageRenders a red error message for validation underneath the input.string | undefinedn/a
isValidboolean | undefinedtrue
labelAccessible description of the outcome of interaction with the checkboxReactNoden/a
loadingSuperfluous property returned from useField. Can be removed at a later date.boolean | undefinedn/a
nameRenders a label inside the input.string | undefinedn/a
onChangeChangeEventHandler<HTMLInputElement>n/a
2024 © Volvo Car Corporation