Form Field Group
A wrapper molecule that pairs any input atom with a label, help text, and error message. Ensures consistent spacing, accessibility linking, and validation display across all form fields.
Preview — Required Field with Help Text
Describe the location as precisely as possible.
Preview — Field with Error
Reporter name is required.
Reporter name is required.
Variants
This help text provides additional context.
This field has a validation error.
This field has a validation error.
Use the textarea atom inside the group.
Accessibility
- Label uses
forattribute linking to the input'sid. - Error messages use
role="alert"for screen reader announcement. - Required indicator (
*) isaria-hidden— the input itself carriesaria-required. - Help text and error are linked via
aria-describedbyon the wrapped input.
Trauma-Informed Design
- Error messages are descriptive and non-blaming: "Reporter name is required" not "You forgot the name."
- Help text provides context for field reporters who may be unfamiliar with the form.
- Optional labels reduce pressure — users know they can skip non-essential fields.
- Consistent layout across all fields reduces cognitive load during stressful data entry.