UI Headless Runtime API - v1.0.0
    Preparing search index...

    Interface MenuSnapshot

    Immutable menu state and WAI-ARIA metadata.

    interface MenuSnapshot {
        activeId: string | null;
        contentId: string;
        controlled: boolean;
        items: readonly Readonly<MenuItem>[];
        open: boolean;
        openSubmenuId: string | null;
        position: PositionResult | null;
        role: "menu";
        selectedId: string | null;
    }
    Index

    Properties

    activeId: string | null

    ID of the keyboard-active item.

    contentId: string

    Stable content ID used by trigger aria-controls relationships.

    controlled: boolean

    Whether open state is consumer-owned.

    items: readonly Readonly<MenuItem>[]

    Ordered registered items.

    open: boolean

    Current open state.

    openSubmenuId: string | null

    ID of the currently requested submenu.

    position: PositionResult | null

    Latest collision-aware position.

    role: "menu"

    Menu role for consumer markup.

    selectedId: string | null

    ID of the last activated item.