@meonode/ui
Version:
A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.
14 lines • 663 B
TypeScript
import { type ReactNode } from 'react';
import type { Children, PortalContextValue } from '../types/node.type.js';
export declare const PortalContext: import("react").Context<PortalContextValue | null>;
/**
* Provides portal context to the component tree.
* Manages the portal stack state and exposes methods for opening/closing portals.
* Must wrap any components that use `usePortal()` or `PortalHost`.
* @param children The children to render.
* @returns The rendered component tree with portal context.
*/
export default function PortalProvider({ children }: {
children?: Children;
}): ReactNode;
//# sourceMappingURL=portal-provider.client.d.ts.map