@clubmed/trident-ui
Version:
Shared ClubMed React UI components
12 lines (11 loc) • 504 B
TypeScript
import { FunctionComponent, PropsWithChildren } from 'react';
export interface PortalProps {
key?: string;
target?: string;
disabled?: boolean;
}
export declare function Portal({ children, target, disabled, key, }: PropsWithChildren<PortalProps>): import('react').ReactNode;
/**
* Wrap a component onto a portal
*/
export declare function withPortal<Props extends PropsWithChildren>(target: string, Cmp: FunctionComponent<Props>): (props: Props) => import("react/jsx-runtime").JSX.Element;