UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

46 lines 1.63 kB
import { SxProps } from '@mui/system'; import * as React from 'react'; import { PopperProps as BasePopperProps } from "./BasePopper.types.js"; import { Theme } from "../styles/index.js"; export interface PopperProps extends Omit<BasePopperProps, 'direction'> { /** * The component used for the root node. * Either a string to use a HTML element or a component. */ component?: React.ElementType; /** * The components used for each slot inside the Popper. * Either a string to use a HTML element or a component. * * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/). * @default {} */ components?: { Root?: React.ElementType; }; /** * The props used for each slot inside the Popper. * * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/). * @default {} */ componentsProps?: BasePopperProps['slotProps']; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; } /** * * Demos: * * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/) * - [Menu](https://mui.com/material-ui/react-menu/) * - [Popper](https://mui.com/material-ui/react-popper/) * * API: * * - [Popper API](https://mui.com/material-ui/api/popper/) */ declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>; export default Popper;