middag-react
    Preparing search index...

    Interface NavigationNode

    interface NavigationNode {
        active?: boolean;
        badge?: string | number;
        badgeVariant?: "count" | "alert";
        children?: NavigationNode[];
        collapsible?: boolean;
        defaultOpen?: boolean;
        drilldown?: boolean;
        entityType?: NavigationEntityType;
        href?: string;
        icon?: string;
        key: string;
        label: string;
        statusColor?: string;
        target?: string;
    }
    Index

    Properties

    active?: boolean
    badge?: string | number
    badgeVariant?: "count" | "alert"

    Badge display variant: 'count' (muted text, default) or 'alert' (red pill like WooCommerce).

    children?: NavigationNode[]
    collapsible?: boolean

    When true, group renders with a toggle to expand/collapse its content.

    defaultOpen?: boolean

    Whether a collapsible group starts expanded (default: false).

    drilldown?: boolean

    When true, clicking replaces sidebar with this node's children + back.

    Entity type for automatic icon resolution (CC-based). Overrides depth fallback.

    href?: string
    icon?: string
    key: string
    label: string
    statusColor?: string

    CSS color for status dot shown next to drilldown title (e.g. 'var(--success)').

    target?: string

    Link target attribute (e.g. '_blank'). External URLs (http/https) auto-detect.