import { Nullable } from '../../../../types/index.js'; import { OnyxBasicPopoverProps } from '../../../OnyxBasicPopover/types.js'; export type OnyxFlyoutMenuProps = Pick & { /** * Aria label for the flyout. */ label: string; /** * If the flyout is expanded on click or hover. * The default value is 'hover' which will expand the flyout on hover. */ trigger?: "hover" | "click"; /** * Indicates whether the element is expanded or collapsed. */ open?: Nullable; /** * Whether the flyout is disabled and can not be opened. */ disabled?: boolean; /** * Defines how nested menu items are rendered and behave. * - `internal`: Nested items expand within current menu. * - `external`: Nested items open in a separate, adjacent flyout menu. */ drilldownMode?: "internal" | "external"; };