Print Desk

The Atom design system, rendered live from its own tokens and components — it cannot drift from what ships.

Docs Components

FormFieldexperimental

The wrapper that gives every control a proper visible label, optional help text, and an error message that screen readers announce. A field with a problem never relies on color alone.

formlabelvalidationaccessibility

Anatomy

  • labelVisible label, for/id bound. Required marker is aria-hidden — aria-required carries the semantics.
  • controlThe single wrapped control; receives id, aria-describedby, aria-invalid, aria-required.
  • helpMuted caption; hidden while an error is present.
  • errorDanger-text caption with role=alert — announced on appearance, next to the field, never color alone.

API

PropTypeDescription
label requiredstringVisible label text. Placeholder-only fields are banned.
requiredbooleanRenders the marker and sets aria-required.
helpstringPersistent guidance below the control.
errorstringValidation message; replaces help and flips the control to invalid.
children requiredReactElementExactly one form control.

Guidelines

  • mustEvery input in the product is wrapped in FormField (or otherwise carries a visible, associated label).
  • mustError messages state what is wrong and how to fix it, adjacent to the field.
  • must-notDo not use placeholder text as the only label.