@ackplus/react-tanstack-data-table
Version:
A powerful React data table component built with MUI and TanStack Table
18 lines • 704 B
TypeScript
import { Menu, MenuProps, Popover } from '@mui/material';
import { ReactElement, ReactNode } from 'react';
type ChildrenEvent = {
handleClose: () => void;
open: boolean;
};
type AnchorEvent = {
isOpen: boolean;
};
export interface MenuDropdownProps extends Omit<MenuProps, 'children' | 'open'> {
children?: ((event: ChildrenEvent) => ReactNode) | ReactNode | any;
anchor?: ((event: AnchorEvent) => ReactElement<any>) | ReactElement<any>;
label?: ReactNode;
component?: typeof Popover | typeof Menu;
}
export declare function MenuDropdown({ children, anchor, label, component, ...props }: MenuDropdownProps): ReactElement;
export {};
//# sourceMappingURL=menu-dropdown.d.ts.map