UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

8 lines (7 loc) 477 B
export interface PortalProps extends React.ComponentPropsWithoutRef<'div'> { /** Portal children, for example, custom modal or popover */ children: React.ReactNode; /** Element inside which portal should be created, by default a new div element is created and appended to the `document.body` */ target?: HTMLElement | string; } export declare const Portal: import("react").ForwardRefExoticComponent<PortalProps & import("react").RefAttributes<HTMLDivElement>>;