synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
29 lines • 919 B
TypeScript
import { ButtonProps, SxProps } from '@mui/material';
import { MouseEvent } from 'react';
import { IconName } from '../IconSvg/IconSvg';
/**
* Defines a configuration for a particular dropdown menu item
*/
export type DropdownMenuItem = {
text: string;
icon?: IconName;
onClick?: (e: MouseEvent) => void;
href?: string;
tooltipText?: string;
disabled?: boolean;
textSx?: SxProps;
iconSx?: SxProps;
};
export type DropdownMenuProps = {
items: DropdownMenuItem[][];
dropdownButtonText: string;
buttonTooltip?: string;
buttonProps?: ButtonProps;
convertSingleItemToButton?: boolean;
renderMenuIfNoItems?: boolean;
};
/**
* The DropdownMenu component provides a generic way to compose a MUI dropdown menu.
*/
export declare function DropdownMenu(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element | null;
//# sourceMappingURL=DropdownMenu.d.ts.map