Skip to main content
cngx-src documentation

CNGX_TAG_GROUP

Tokenv0.1.0WCAG AA

InjectionToken<CngxTagGroupHost>

Description#

DI token for parent CngxTagGroup <-> child CngxTag ARIA wiring. Atomic-decompose rule 4 - communication via InjectionToken, never via concrete parent class injection.

CngxTag injects the token { optional: true } and, when present, derives its own role="listitem" from host.semanticList() via a single computed(). When absent (Tag rendered outside any group), the role attribute stays unset.

Defaults to no provider - the token resolves to null for any CngxTag that lives outside a CngxTagGroup.

Type#

InjectionToken<CngxTagGroupHost>