Components / Field

Field

A compositional field that keeps native label, description and error wiring explicit.

We only use this for project updates.
example.component.html
html
<aevko-field>
  <label aevkoFieldLabel for="email">
    Email
  </label>
  <input id="email" aria-describedby="email-help" />
</aevko-field>

Installation

npx aevko-ui@latest add field --yes

Source ownership

Customization

Keep label, help and error content explicit, then control layout through the field host. Nothing is hidden behind generated form metadata.

Edit locallyThe installed template and stylesheet are application code, not a black box.
Theme semanticallyOverride --aevko-* tokens or ordinary classes without !important.
Compose freelySlots accept native elements, SVG, images or Angular components.

API reference

Property or slotTypeDefaultDescription
invalidbooleanfalseMarks the group invalid for styling and semantics.
aevkoFieldLabelprojected slotemptyNative label or custom label content.
aevkoFieldDescriptionprojected slotemptyHelp text referenced by the control.
aevkoFieldErrorprojected slotemptyValidation message shown by the consumer.

Accessibility contract

Accessibility

Included behavior

  • Keep label for and control id paired.
  • Reference description and error ids from aria-describedby.

Your responsibility

Pair for/id values and reference help or error ids from aria-describedby on the actual control.

Back to all components