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

11 lines (10 loc) 626 B
import { type HTMLAttributes } from 'react'; /** * Anchor component that specifies where Portal content will be rendered. * This component creates a DOM element that serves as the target for Portal rendering. * @param props - Properties to be passed to the underlying div element (excluding children) * @returns A div element that marks the location where Portal content will be rendered * @example * <Portal.Anchor className="portal-container" /> */ export declare const Anchor: import("react").MemoExoticComponent<(props: Omit<HTMLAttributes<HTMLDivElement>, "children">) => import("react/jsx-runtime").JSX.Element>;