Toggle theme
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.
Name | Description | Type | Default Value |
|---|---|---|---|
checked | boolean | n/a | |
description | Renders a description text underneath the input. | string | n/a |
errorMessage | Renders a red error message for validation underneath the input. | string | n/a |
isValid | Renders the input as valid or invalid. | boolean | true |
label | Renders a label inside the input. | ReactNode | `` |
loading | Superfluous property returned from useField. Can be removed at a later date. | boolean | n/a |
name | string | n/a | |
onChange | onChange handler. Triggers on every keyboard and generally is here where you change the value of the value property. | ChangeEventHandler<HTMLInputElement> | n/a |