Components / Label

Label

A visual treatment for the native label element.

example.component.html
html
<label aevkoLabel for="project">
  Project name
</label>

Installation

npx aevko-ui@latest add label --yes

Source ownership

Customization

Style the native label through ordinary classes or the local directive stylesheet; association remains the browser for/id contract.

Edit locallyThe installed template and stylesheet are application code, not a black box.
Theme semanticallyOverride --aevko-* tokens or ordinary classes without !important.

API reference

Property or slotTypeDefaultDescription
native attributesHTMLLabelElementbrowser defaultAccepts native label attributes, including for.

Accessibility contract

Accessibility

Included behavior

  • Uses a real label so clicking it focuses its associated form control.

Your responsibility

Set for to the id of a labelable control and do not use the component as a generic text style.

Back to all components