UNPKG

@rmwc/base

Version:
11 lines (10 loc) 585 B
import * as RMWC from '@rmwc/types'; import { MutableRefObject } from 'react'; export declare type PortalPropT = Element | string | boolean | undefined | null; export declare type PortalProps = Omit<RMWC.HTMLProps<HTMLDivElement>, 'id' | 'ref'>; export declare const Portal: (props: PortalProps) => JSX.Element; export declare function PortalChild({ children, renderTo, menuSurfaceDomPositionRef }: { children: React.ReactNode; renderTo?: PortalPropT; menuSurfaceDomPositionRef?: MutableRefObject<HTMLDivElement | null>; }): import("react/jsx-runtime").JSX.Element | null;