Enhanced component for Form
FormHelper
import { FormHelper } from '@yuntijs/ui';Enhanced component for Form
import { FormHelper } from '@yuntijs/ui';Form enhancement component, currently supporting:
Wrap the Form component with FormHelper. Supported attributes include:
| props | description | default | required |
|---|---|---|---|
| autoFocus | Automatically select the focus state of the first non-disabled and non-readonly input or textarea in the form. | true | false |
| id | The id of the outer wrapping div. | - | false |
| className | The className of the outer wrapping div. | - | false |
| style | The style of the outer wrapping div. | - | false |
As a higher-order component, withFormHelper supports the same parameters as the React component FormHelper.
Supports passing a ref, id, or DOM element as a parameter.