UNPKG

rsuite

Version:

A suite of react components

13 lines (12 loc) 402 B
import React from 'react'; interface PortalProps { container?: HTMLElement | (() => HTMLElement | null) | null; waitMount?: boolean; } export declare function usePortal(props?: PortalProps): { target: HTMLElement | null; Portal: ((props: any) => React.JSX.Element) | (({ children }: { children: React.ReactNode; }) => React.ReactPortal | null); }; export default usePortal;