FormField
Groups a label, input, error message, and hint text with consistent spacing.
Installation
Examples
Full field with error
Label, input, hint, and error message together.
Please enter a valid email.
We will never share your email.
Multiple fields
Multiple FormFields in a form layout.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Field label text. |
| error | string | — | Error message displayed below the input. |
| required | boolean | false | Adds a required indicator to the label. |
| hint | string | — | Helper text below the input. |
| children* | ReactNode | required | The form control to wrap. |