import { ReactNode } from "react"; import { BaseElementProps } from "../../types"; /** A single context menu item */ export type ContextMenuItem = { /** Unique key */ key: string; /** Display label. When omitted the item is treated as a divider */ label?: string; /** Bootstrap icon name (without `bi-` prefix) */ icon?: string; /** Whether this item is disabled */ disabled?: boolean; /** Called when the item is clicked */ onClick?: () => void; }; /** ContextMenu component props */ export type ContextMenuProps = BaseElementProps & { /** Items to show in the menu */ items: ContextMenuItem[]; /** The element that triggers the context menu on right-click */ children: ReactNode; /** * Whether the menu is disabled globally. * @default false */ disabled?: boolean; }; //# sourceMappingURL=types.d.ts.map