Optionalactions?: MenuItem[] | (() => MenuItem[])Optionalchildren?: ReactNodeThe trigger.
Optionalcontainer?: HTMLElement | nullSpecify a container element to portal the content into.
OptionaldefaultOpen?: booleanOptionaldeferUntilOpen?: booleanBuilds 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?: booleanOptionalgroup?: MenuGroupContextThe group whose items the menu shows; the root's when omitted.
OptionalonOpenChange?: (open: boolean) => voidOptionalopen?: booleanOptionalvirtualRef?: RefObject<Element | null>Anchors the content at an element that is not the trigger (open it under control); the child is then optional.
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.