@welcome-ui/utils
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
6 lines (5 loc) • 346 B
TypeScript
/// <reference types="react" />
/**
* Hook that mimic the React createPortal function in order to make it SSR friendly
*/
export declare function useCreatePortal(disable?: boolean): ((children: React.ReactNode) => any) | ((children: React.ReactNode, container?: Element | DocumentFragment, key?: string | null) => import("react").ReactPortal);