UNPKG

@winglet/react-utils

Version:

React utility library providing custom hooks, higher-order components (HOCs), and utility functions to enhance React application development with improved reusability and functionality

9 lines (8 loc) 323 B
import { type ReactNode, type RefObject } from 'react'; type PortalContextType = { portalAnchorRef: RefObject<HTMLDivElement | null>; register: (element: ReactNode) => string; unregister: (id: string) => void; }; export declare const PortalContext: import("react").Context<PortalContextType | null>; export {};