1 | import * as React from 'react';
|
2 | import PopperJs, { ReferenceObject } from 'popper.js';
|
3 | import { PortalProps } from '../Portal';
|
4 | import { TransitionProps } from '../transitions/transition';
|
5 |
|
6 | export type PopperPlacementType =
|
7 | | 'bottom-end'
|
8 | | 'bottom-start'
|
9 | | 'bottom'
|
10 | | 'left-end'
|
11 | | 'left-start'
|
12 | | 'left'
|
13 | | 'right-end'
|
14 | | 'right-start'
|
15 | | 'right'
|
16 | | 'top-end'
|
17 | | 'top-start'
|
18 | | 'top';
|
19 |
|
20 | export interface PopperProps extends React.HTMLAttributes<HTMLDivElement> {
|
21 | anchorEl?: null | ReferenceObject | (() => ReferenceObject);
|
22 | children:
|
23 | | React.ReactNode
|
24 | | ((props: {
|
25 | placement: PopperPlacementType;
|
26 | TransitionProps?: {
|
27 | in: boolean;
|
28 | onEnter: () => {};
|
29 | onExited: () => {};
|
30 | };
|
31 | }) => React.ReactNode);
|
32 | container?: PortalProps['container'];
|
33 | disablePortal?: PortalProps['disablePortal'];
|
34 | keepMounted?: boolean;
|
35 | modifiers?: object;
|
36 | open: boolean;
|
37 | placement?: PopperPlacementType;
|
38 | popperOptions?: object;
|
39 | popperRef?: React.Ref<PopperJs>;
|
40 | transition?: boolean;
|
41 | }
|
42 |
|
43 | declare const Popper: React.ComponentType<PopperProps>;
|
44 |
|
45 | export default Popper;
|
46 |
|
\ | No newline at end of file |