@react-riftgate/teleporter
Version:
A library that provides lower-level React components for teleporting React components from one place to another in the same React tree
10 lines (9 loc) • 427 B
TypeScript
import type { TeleporterGateProps, TeleporterDomainProps } from "./types";
declare const Teleporter: {
Gate: ({ component: Component, portKey, ...props }: TeleporterGateProps) => JSX.Element;
Domain: ({ portKey, children }: TeleporterDomainProps) => JSX.Element | null;
Move: ({ children }: {
children?: import("react").ReactNode;
}) => import("react").ReactPortal | null;
};
export default Teleporter;