26 lines
673 B
TypeScript
26 lines
673 B
TypeScript
import * as React from 'react';
|
|
import { PopoverProps, PopoverClassKey } from '../Popover';
|
|
import { TransitionDuration, TransitionHandlers } from '../internal/transition';
|
|
import { MenuListProps } from './MenuList';
|
|
import { StandardProps } from '..';
|
|
|
|
export interface MenuProps extends StandardProps<
|
|
PopoverProps & Partial<TransitionHandlers>,
|
|
MenuClassKey
|
|
> {
|
|
anchorEl?: HTMLElement;
|
|
MenuListProps?: MenuListProps;
|
|
onRequestClose?: React.EventHandler<any>;
|
|
open?: boolean;
|
|
transitionDuration?: TransitionDuration;
|
|
}
|
|
|
|
export type MenuClassKey =
|
|
| PopoverClassKey
|
|
| 'root'
|
|
;
|
|
|
|
declare const Menu: React.ComponentType<MenuProps>;
|
|
|
|
export default Menu;
|