vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias MenuItem

    type MenuItem = {
        name: string;
        title: string;
        href: string | null;
        meta: Record<string, unknown>;
        active: boolean;
        exactActive: boolean;
        children: readonly MenuItem[];
    }
    Index
    name: string
    title: string

    meta.title — an i18n KEY; translate in the view.

    href: string | null

    Absolute href (base included) — null for group rows (section nodes).

    meta: Record<string, unknown>
    active: boolean

    Same semantics as data-active stamping; a parent also lights up when any of its children is active.

    exactActive: boolean
    children: readonly MenuItem[]