UNPKG

@react-three/uikit

Version:

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

32 lines (31 loc) 1.15 kB
import { ReactNode, RefAttributes } from 'react'; import { ImageProperties, VanillaImage } from './index.js'; export declare const privateKeys: string[]; type BasePortalProperties = Omit<ImageProperties, '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 declare const Portal: import("react").ForwardRefExoticComponent<{ 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; } & RefAttributes<VanillaImage<import("@pmndrs/uikit").ImageOutProperties<string | import("three").Texture>>>>; export {};