UNPKG

@vuecs/navigation

Version:

A package for multi level navigations.

22 lines 910 B
import type { ComputedRef, Ref } from 'vue'; import type { NavigationItemNormalized } from '../types'; export type NavigationRegistryEntry<META = any> = { /** * Full resolved tree. Each item carries `.active` (exact current * item) and `.activeWithin` (ancestor on the active branch). */ items: Readonly<Ref<NavigationItemNormalized<META>[]>>; /** * Exact active leaf item(s) — `[]` | `[one]` | `[ties…]`. * Single-active consumers read `active.value[0]`. */ active: ComputedRef<NavigationItemNormalized<META>[]>; /** * Ordered active trail, root → leaf, for the (primary) active item. * `activeTrail.value[0]` is the active top-level section, * `activeTrail.value.at(-1)` is the active leaf. `[]` when nothing * is active. */ activeTrail: ComputedRef<NavigationItemNormalized<META>[]>; }; //# sourceMappingURL=types.d.ts.map