FormField
Data Entry
@rockshin/tao-uiAssociates labels, help text, validation state, and controls.
When to use
Use FormField to provide accessible labeling and status text around a single control.
Recommended
- Connect every input with a visible label.
- Keep validation copy specific and actionable.
Avoid
- Do not use the component outside its intended interaction model.
Examples
Basic usage
Used for account notifications.
Description and error states
Visible to all members.
Use lowercase letters and hyphens only.
Semantic parts
Stored securely.
Complete form composition
Compose layout, fields, and actions with native submission feedback.
Error feedback and recovery
Update errors with input while the field label remains associated with its control.
Enter at least 3 characters
Explicit association
Use htmlFor and an input id when integrating existing form identifiers; useId avoids duplicates.
Used for account notifications