A wrapper that pairs a form control with a label, hint, and error message.
Use FieldGroup to align multiple horizontal fields into a two-column grid,
and FieldSpan to let any element break out of the grid and span the full width.
Wrap any control with Field and provide a label.
Use hint for helper text, error for validation messages, required or optional to annotate the label; these do not validate or mark the child control required. The label, hint and error are bound to the first control inside the Field automatically (label as the control's name, hint/error via aria-describedby, error also as aria-invalid); set for only to wire a specific id yourself.
We'll never share your email.
You must accept the terms.
Set layout="horizontal" and wrap fields in a FieldGroup to get a
two-column grid with aligned labels. Use FieldSpan to make any element span both columns.
Tell us a bit about yourself.
Replace label, hint, error with snippets for rich content.
Use the action snippet for a right-aligned element in the label row.