@procore/core-react
Version:
React library of Procore Design Guidelines
6 lines (5 loc) • 372 B
TypeScript
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;