Skip to content

Field

One form row: label, control, hint and error, wired together. Controls inside take their id, description, error and disabled state from the Field.

Sourcecomponents/field.tsx

As it appears on your card.

We send receipts here.

Billing address

Usage

When to use

Use when

Every form row: wrap the control with FieldLabel, and FieldDescription / FieldError as needed. Group rows with FieldSet + FieldLegend

Don’t use when

Wiring htmlFor, aria-describedby and aria-invalid by hand