UNPKG

@react-three/uikit

Version:

Build performant 3D user interfaces with react-three-fiber and yoga.

23 lines (22 loc) 890 B
import { ReactNode, RefAttributes } from 'react'; import type { ImageProperties } from '@pmndrs/uikit/internals'; import type { ComponentInternals } from './ref.js'; import { R3FEventMap } from './utils.js'; export declare const privateKeys: string[]; type BasePortalProperties = Omit<ImageProperties<R3FEventMap>, 'src' | 'objectFit'>; export type PortalProperties = { frames?: number; renderPriority?: number; eventPriority?: number; /** * ratio between the size (in pixels) and the size of the render target (in pixels) * higher dpr means higher resolution of the render target */ dpr?: number; children?: ReactNode; } & BasePortalProperties & { children?: ReactNode; }; export type PortalRef = ComponentInternals<BasePortalProperties>; export declare const Portal: (props: PortalProperties & RefAttributes<PortalRef>) => ReactNode; export {};