import { ReactElement, ReactNode } from 'react'; import { CommonProps } from '../common'; export interface DropdownProps extends CommonProps { /** * Content of the dropdown, usually a menu. */ content: ReactNode; /** * Whether the dropdown takes up the entire line. */ display?: 'inline-block' | 'block'; /** * Whether to keep dropdown content mounted when dropdown is closed. */ keepContentMounted?: boolean; /** * Closing callback. */ onClose: () => void; /** * Whether the dropdown is open. */ open: boolean; /** * Placement of dropdown content to the target. */ placement?: 'bottom-left' | 'bottom-right'; /** * Target element that dropdown menu is relative to. */ target: ReactElement; } declare const Dropdown: ({ open, content, target, keepContentMounted, placement, display, onClose, id, className, style, sx, "data-test-id": dataTestId, }: DropdownProps) => ReactElement; export default Dropdown;