FormFieldProps
Specifies the properties for the FormField component.
Props
The following table outlines the props for the FormFieldProps:
| Name | Type | Default | Description |
|---|---|---|---|
| children | node | - | Specifies the children content for the form field. Children should include the actual form control elements like inputs, textarea, etc. |
| name | string | - | Specifies the name of the field that must match a key in the rules object. This is required for proper validation. |
| rules | undefined | Specifies field-level validation rules that apply only to this specific field. These rules override any form-level rules with the same name defined in the Form component's rules. This allows for field-specific validation that takes precedence over form-wide defaults. |