Checkbox

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

Name
Description
Type
Default 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
2022 © Volvo Car Corporation