@ackplus/react-tanstack-data-table
Version:
A powerful React data table component built with MUI and TanStack Table
18 lines (17 loc) • 692 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, sx, ...props }: MenuDropdownProps): import("react/jsx-runtime").JSX.Element;
export {};