UNPKG

667 BTypeScriptView Raw
1import * as React from "react";
2export interface PortalContextOptions {
3 /** Additional CSS classes to add to all `Portal` elements in this React context. */
4 portalClassName?: string;
5}
6/**
7 * A React context to set options for all portals in a given subtree.
8 * Do not use this PortalContext directly, instead use PortalProvider to set the options.
9 */
10export declare const PortalContext: React.Context<PortalContextOptions>;
11/**
12 * Portal context provider.
13 *
14 * @see https://blueprintjs.com/docs/#core/context/portal-provider
15 */
16export declare const PortalProvider: ({ children, ...options }: React.PropsWithChildren<PortalContextOptions>) => JSX.Element;