welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
5 lines (4 loc) • 314 B
TypeScript
/**
* 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?: DocumentFragment | Element, key?: null | string) => import('react').ReactPortal);