Skip to content

A styled label for form fields. Supports peer state (disabled styling).

[atlasLabel]

Examples

Basic

atlasLabel styles a native label ; keep for pointing at the control id.

Required and optional fields

Mark required fields with the native required attribute, which screen readers announce; the asterisk is only visual ( aria-hidden ). When most fields are required, marking the optional ones reads better.

API

Generated from the library source, so it always matches the code.

AtlasLabelDirective [atlasLabel]

InputTypeDefaultDescription
for string | undefinedundefined Id of the control this label names. Inside atlas-form-field it defaults to the field's control.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.