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

8 lines (7 loc) 419 B
import { type PropsWithChildren } from 'react'; /** * Portal component renders its children under the portalAnchor within a withPortal HOC. * Content passed to this component will be rendered at the location of the Portal.Anchor. * @param children - The components to be rendered under the portalAnchor */ export declare const Portal: import("react").MemoExoticComponent<({ children }: PropsWithChildren) => null>;