UNPKG

@procore/core-react

Version:
6 lines (5 loc) 372 B
import React from 'react'; import type { PortalProviderProps } from './PortalProvider.types'; export declare const PortalContext: React.Context<HTMLElement | ShadowRoot | undefined>; export declare function PortalProvider({ children, container }: PortalProviderProps): React.JSX.Element; export declare function usePortalContainer(): HTMLElement | ShadowRoot | undefined;