formstexulinot agent-emittableapp
Field
field
Label, description and error wiring for a single control.
Live examples
Vertical field
Vertical field
Loading demo…
Props
| Name | Kind | Required | Default | Description |
|---|---|---|---|---|
label | string | yes | — | — |
description | string | no | — | — |
error | string | no | — | Error message; marks the control invalid |
required | boolean | no | false | — |
disabled | boolean | no | false | — |
id | string | no | — | — |
hideLabel | boolean | no | false | — |
orientation | enum (vertical, horizontal) | no | "vertical" | — |
class | string | no | — | — |
children | slot | yes | — | Control snippet receiving FieldControl |
Keyboard
| Key | Action |
|---|---|
— | 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.tsdocs/quality (a11y-*)
Site component pages axe gate; package-level a11y docs under docs/quality when present.
Browsers
chromiumwebkitmobile
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