Skip to content

lit-ui-router / AriaCurrentValues

Interface: AriaCurrentValues ​

Defined in: packages/lit-ui-router/src/ui-sref-active.ts:119

Per-state aria-current values, for the rare nav that wants to mark an ancestor as well as the current page.

Unlike activeClasses and exactClasses — which both land in class when a link is exactly active — aria-current is one attribute with one value, so these do not combine: on an exactly-active element exact wins and active is not consulted. Each key falls back to its own default when omitted.

See ​

UiSrefActiveParams.ariaCurrentValue

Properties ​

PropertyTypeDescriptionDefined in
active?false | AriaCurrentValueApplied when a child state is active but this one is not the exact match — 'location' is the token meant for this. Defaults to false.packages/lit-ui-router/src/ui-sref-active.ts:126
exact?false | AriaCurrentValueApplied when the exact state is active. Defaults to 'page' on links.packages/lit-ui-router/src/ui-sref-active.ts:121