Toggle theme

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
checkedbooleann/a
descriptionRenders a description text underneath the input.stringn/a
errorMessageRenders a red error message for validation underneath the input.stringn/a
isValidRenders the input as valid or invalid.booleantrue
labelRenders a label inside the input.ReactNode``
loadingSuperfluous property returned from useField. Can be removed at a later date.booleann/a
namestringn/a
onChangeonChange handler. Triggers on every keyboard and generally is here where you change the value of the value property.ChangeEventHandler<HTMLInputElement>n/a
2022 © Volvo Car Corporation