Skip to content

Form Field

Feedback

Wraps a form control with its label, hint and error, and links them for assistive technology: no ids to write by hand.

atlas-form-field

Examples

With Signal Forms

atlas-form-field lays out a label, the control and a hint or error, and links them: the label names the control, the hint or error describes it, and error marks it invalid — no ids to write. Drive error from the Signal Forms field state.

We never share your email.

Any Atlas control

The same field works for every Atlas control — select, date picker, time picker, radio group. Pickers are announced with their value ("Delivery date, 12 Mar 2026"), and an error is read when the control is focused.

Where we ship the order.

API

Generated from the library source, so it always matches the code.

AtlasFormFieldComponent atlas-form-field

InputTypeDefaultDescription
label string | nullnull Label text, rendered as an atlasLabel that names the control. For rich label content project your own <label atlasLabel> instead (the field gives it for ).
error string | nullnull Error text; while set the control is aria-invalid and described by it.
hint string | nullnull Help text, shown (and describing the control) when there is no error.
fieldId string | undefinedundefined Fixed id for the control (and the label's for ). Generated when not set.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.