@octopusdeploy/design-system-components
Version:
The design systems component library.
19 lines (18 loc) • 1.03 kB
TypeScript
import type { SimpleMenuItem } from "../MenuItems";
interface OverflowMenuProps {
menuItems: SimpleMenuItem[];
accessibleName?: string;
/**
* @deprecated Migration shim only. Calls `preventDefault()` and `stopPropagation()` on the trigger click so it
* does not bubble to a clickable ancestor (e.g. a table row that navigates or expands). This reproduces the
* unconditional behaviour of the old `DeprecatedOverflowMenu` and exists only to keep migrated call sites
* behaviour-preserving.
*
* Do not use in new code. Nesting an interactive element (this menu) inside another interactive element
* (a clickable row/card) is the underlying problem this works around; avoid that nesting instead so the
* trigger click never needs to be contained.
*/
stopTriggerClickPropagation?: boolean;
}
export declare const OverflowMenu: ({ menuItems, accessibleName, stopTriggerClickPropagation }: OverflowMenuProps) => import("react/jsx-runtime").JSX.Element | null;
export {};