@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
11 lines (10 loc) • 534 B
TypeScript
import React from 'react';
import { IPortal } from './types/portal';
/**
* @deprecated This component has been deprecated and will be not exported in the next MAJOR release
* Renders a portal component that can be appended to the <body> tag or a custom wrapper element.
* @param children - The content to be rendered inside the portal.
* @param wrapperId - The ID of the custom wrapper element (optional).
* @returns The portal component.
*/
export declare const Portal: ({ children, wrapperId }: IPortal) => React.JSX.Element;