@dxos/react-ui-menu
    Preparing search index...

    Type Alias ActionMenuProps

    ActionMenuProps: Partial<MenuActions> & {
        actions?: MenuItem[] | (() => MenuItem[]);
        children?: ReactNode;
        container?: HTMLElement | null;
        defaultOpen?: boolean;
        deferUntilOpen?: boolean;
        disabled?: boolean;
        group?: MenuGroupContext;
        onOpenChange?: (open: boolean) => void;
        open?: boolean;
        virtualRef?: RefObject<Element | null>;
    }

    Type declaration

    • Optionalactions?: MenuItem[] | (() => MenuItem[])

      Explicit items in place of the group's own; contributions still apply. A thunk is called once the menu exists, so a deferred menu does not build its items until it is opened.

    • Optionalchildren?: ReactNode

      The trigger.

    • Optionalcontainer?: HTMLElement | null

      Specify a container element to portal the content into.

    • OptionaldefaultOpen?: boolean
    • OptionaldeferUntilOpen?: boolean

      Builds the menu on the trigger's first click rather than with the trigger, since each menu carries a state machine and a list renders one per row. Ignored for a controlled or virtually-anchored menu, which may be opened from anywhere and so cannot wait for its own trigger.

    • Optionaldisabled?: boolean
    • Optionalgroup?: MenuGroupContext

      The group whose items the menu shows; the root's when omitted.

    • OptionalonOpenChange?: (open: boolean) => void
    • Optionalopen?: boolean
    • OptionalvirtualRef?: RefObject<Element | null>

      Anchors the content at an element that is not the trigger (open it under control); the child is then optional.