Field
The association between a visible label, its input and supporting messages.
Preview
Visible to your team.
Enter a project name.
Use Field
Field is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- Spread the supplied control props onto one Input or Textarea.
- Field merges describedBy with hint/error IDs and forwards native required through its function child.
- The host owns validation rules. Compose Field in a client component in Next.js.
- Field is not a generic native div wrapper and does not forward a ref.
API reference
View TypeScript source