import * as React from "react"; import { ReactNode, RefObject } from "react"; import { ActionMenuProps, FlatButton, PrimaryButton, PrimaryButtonProps, SecondaryButton } from "@stenajs-webui/elements"; import { ControlledPopoverProps, PopoverProps } from "@stenajs-webui/tooltip"; export interface ActionMenuButtonProps extends Omit { /** The content of the Action Menu. */ renderItems: (close: () => void) => ReactNode; /** The placement of the Action Menu. */ placement?: PopoverProps["placement"]; /** Z-index of the Action Menu */ zIndex?: number; /** Portal target, HTML element. If not set, portal is not used. */ appendTo?: ControlledPopoverProps["appendTo"]; menuWidth?: ActionMenuProps["width"]; menuTop?: ActionMenuProps["top"]; buttonComponent: typeof PrimaryButton | typeof SecondaryButton | typeof FlatButton; disableArrow?: boolean; buttonRef?: RefObject; /** * Use if focus should not be trapped inside the Action Menu. * Defaults to false. */ disableTrapFocus?: boolean; } export declare const ActionMenuButton: React.FC;