{/* * _____ _ *|_ _|_ _____ _ __ | |_ _ _ * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file * | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten * |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs * |___/ * * This file is generated from the documentation data in packages/twenty-ui/generated. * To update it, edit the component prop types or design tokens in twenty-ui and run: * npx nx generate:ui twenty-docs */} ### Menu.Root A ref to imperative actions. - `unmount`: Manually unmounts the menu. Call this after any externally controlled closing animation finishes. - `close`: When specified, the menu can be closed imperatively. The content of the menu. This can be a regular React node or a render function that receives the `payload` of the active trigger. When in a submenu, determines whether pressing the Escape key closes the entire menu, or only the current child menu. Whether the menu is initially open. To render a controlled menu, use the `open` prop instead. ID of the trigger that the menu is associated with. This is useful in conjunction with the `defaultOpen` prop to create an initially open menu. Whether the component should ignore user interaction. A handle to associate the menu with a trigger. If specified, allows external triggers to control the menu's open state. Whether moving the pointer over items should highlight them. Disabling this prop allows CSS `:hover` to be differentiated from the `:focus` (`data-highlighted`) state. Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys. Determines if the menu enters a modal state when open. - `true`: user interaction is limited to the menu: document page scroll is locked and pointer interactions on outside elements are disabled. - `false`: user interaction with the rest of the document is allowed. On touch devices, a `true` modal blocks outside taps but leaves the page scrollable unless the popup spans nearly the full viewport width, matching native iOS behavior. Nested menus ignore this prop, and menus opened by hover are never modal. Event handler called when the menu is opened or closed. Event handler called after any animations complete when the menu is opened or closed. Whether the menu is currently open. The visual orientation of the menu. Controls whether roving focus uses up/down or left/right arrow keys. ID of the trigger that the menu is associated with. This is useful in conjunction with the `open` prop to create a controlled menu. There's no need to specify this prop when the menu is uncontrolled (that is, when the `open` prop is not set). ### Menu.Trigger CSS class applied to the element, or a function that returns a class based on the component's state. How long to wait before closing the menu that was opened on hover. Specified in milliseconds. Requires the `openOnHover` prop. How long to wait before the menu may be opened on hover. Specified in milliseconds. Requires the `openOnHover` prop. Whether the component should ignore user interaction. A handle to associate the trigger with a menu. Whether the component renders a native `