UNPKG

@mui/material

Version:

React components that implement Google's Material Design.

56 lines (55 loc) 1.73 kB
import { PopperUnstyledProps } from '@mui/base/PopperUnstyled'; import { SxProps } from '@mui/system'; import * as React from 'react'; import { Theme } from '../styles'; export type PopperProps = Omit<PopperUnstyledProps, 'direction'> & { /** * The components used for each slot inside the Popper. * Either a string to use a HTML element or a component. * @default {} */ components?: { Root?: React.ElementType; }; /** * The props used for each slot inside the Popper. * @default {} */ componentsProps?: PopperUnstyledProps['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<Omit<PopperUnstyledProps<"div", {}>, "direction"> & { /** * The components used for each slot inside the Popper. * Either a string to use a HTML element or a component. * @default {} */ components?: { Root?: React.ElementType<any> | undefined; } | undefined; /** * The props used for each slot inside the Popper. * @default {} */ componentsProps?: PopperUnstyledProps['slotProps']; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme> | undefined; } & React.RefAttributes<HTMLDivElement>>; export default Popper;