UNPKG

1.64 kBTypeScriptView Raw
1import { SxProps } from '@mui/system';
2import * as React from 'react';
3import { PopperProps as BasePopperProps } from './BasePopper.types';
4import { Theme } from '../styles';
5export interface PopperProps extends Omit<BasePopperProps, 'direction'> {
6 /**
7 * The component used for the root node.
8 * Either a string to use a HTML element or a component.
9 */
10 component?: React.ElementType;
11 /**
12 * The components used for each slot inside the Popper.
13 * Either a string to use a HTML element or a component.
14 *
15 * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
16 * @default {}
17 */
18 components?: {
19 Root?: React.ElementType;
20 };
21 /**
22 * The props used for each slot inside the Popper.
23 *
24 * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
25 * @default {}
26 */
27 componentsProps?: BasePopperProps['slotProps'];
28 /**
29 * The system prop that allows defining system overrides as well as additional CSS styles.
30 */
31 sx?: SxProps<Theme>;
32}
33/**
34 *
35 * Demos:
36 *
37 * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
38 * - [Menu](https://mui.com/material-ui/react-menu/)
39 * - [Popper](https://mui.com/material-ui/react-popper/)
40 *
41 * API:
42 *
43 * - [Popper API](https://mui.com/material-ui/api/popper/)
44 */
45declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>;
46export default Popper;