UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

29 lines 919 B
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