ComponentReactregistry:ui
Field
field
Form field composition: Field, FieldControl, FieldLabel, FieldDescription, FieldError. Auto-wires accessibility: FieldControl (a Slot around any control) receives a generated id, aria-describedby pointing at the description and error, and aria-invalid; the label targets the control automatically. invalid/disabled props drive data attributes, label color and dimming. orientation switches vertical (default) and horizontal (label-left, e.g. switch rows).
This item declares no source files.
Notes from the author
Wrap the control in FieldControl to get id/aria-describedby/aria-invalid wiring for free. FieldError renders nothing when empty, so you can bind it directly to a form library's error string; a present error marks the whole field invalid.
1 example
See it in use
Used by 1 item
Built on Field
Other @ai2 items that list this one as a dependency.
@ai2
