UNPKG

829 BTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React, { HTMLProps, ReactNode, Ref } from 'react';
3export interface MenuProps extends HTMLProps<HTMLDivElement> {
4 emptyLabel?: ReactNode;
5 innerRef?: Ref<HTMLDivElement>;
6 maxHeight?: string;
7}
8declare const Menu: {
9 ({ emptyLabel, innerRef, maxHeight, style, ...props }: MenuProps): React.JSX.Element;
10 propTypes: {
11 'aria-label': PropTypes.Requireable<string>;
12 emptyLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13 id: (props: import("../../types").TypeaheadProps, propName: keyof import("../../types").TypeaheadProps, componentName: string) => void;
14 maxHeight: PropTypes.Requireable<string>;
15 };
16 Divider: () => React.JSX.Element;
17 Header: (props: HTMLProps<HTMLDivElement>) => React.JSX.Element;
18};
19export default Menu;