ComponentsField

formstexulinot agent-emittableapp

Field

field

Label, description and error wiring for a single control.

Live examples

Vertical field

Vertical field

Loading demo…

Props

Public props for Field
NameKindRequiredDefaultDescription
labelstringyes——
descriptionstringno——
errorstringno—Error message; marks the control invalid
requiredbooleannofalse—
disabledbooleannofalse—
idstringno——
hideLabelbooleannofalse—
orientationenum (vertical, horizontal)no"vertical"—
classstringno——
childrenslotyes—Control snippet receiving FieldControl

Keyboard

Keyboard behavior for Field
KeyAction
—See accessibility notes for keyboard behavior.

Accessibility

  • Generates id and aria-describedby for the control snippet
  • Marks aria-invalid when error is present
  • hideLabel keeps the label available to assistive tech

Evidence for field

Latest committed gates for field (as of 2026-10-23). Static snapshot — not live CI.

Behavior

n/ano behavior scenario

No dedicated behavior scenario for this catalog id (a styled or display surface, covered by its unit and axe tests).

Size (gzip)

texuli/field · budget 12.0 KiB

Budget from texuli.budgets.json; re-measure with `pnpm size --filter <entry>`.

Axe

documented

  • tests/e2e/site-component-pages.spec.ts
  • docs/quality (a11y-*)

Site component pages axe gate; package-level a11y docs under docs/quality when present.

Browsers

  • chromium
  • webkit
  • mobile

Playwright projects: Desktop Chrome, Desktop Safari, Pixel 7. Firefox is a known gap on this host.

When to use

Use when

  • Compose a labeled control with optional help and error text

Don’t use when

Prefer another component

  • Standalone chrome without a form control