CheckboxProps<FieldValues> = object
| Type Parameter |
|---|
FieldValues extends TFieldValues |
| Property | Type | Description |
|---|
disabled? | boolean | If true, the component is disabled. Default false |
error? | object | An error message to display below the element when in an invalid state. |
error.message? | string | - |
helpText? | React.ReactNode | Explanatory text to render below the element. |
label | string | A user-friendly label displayed alongside the element. |
name | Path<FieldValues> | A unique name identifying the element within a form. |
required? | boolean | When true, the element will be invalid when touched and unchecked. Default false |