Form
#
This component extends form
html element. It is meant to be used with FormField
components, in which it will add useful props for form validation.
#
Example#
PropsExtends
React.FormHTMLAttributes
props
Additional props:
Name | Type | Default | Required | Description |
---|---|---|---|---|
form | UseFormMethods<any> | Yes | Value of react-hook-form useForm(). | |
disabled | boolean | No | Disable all fields. Overriden by FormField disabled prop. |