UNPKG

@react-three/uikit

Version:

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

19 lines (18 loc) 806 B
import { ReactNode, RefAttributes } from 'react'; import { ImageProperties } from './image.js'; import { ComponentInternals } from './ref.js'; import { VideoProperties, VideoRef } from './video.js'; export type SuspendingImageProperties = ImageProperties & { src: string; children?: ReactNode; }; export type SuspendingImageRef = ComponentInternals<Omit<ImageProperties, 'src'>>; /** * be aware that this component does not dispose the loaded texture */ export declare const SuspendingImage: (props: SuspendingImageProperties & RefAttributes<SuspendingImageRef>) => ReactNode; export type SuspendingVideoProperties = VideoProperties & { src: string; children?: ReactNode; }; export declare const SuspendingVideo: (props: SuspendingVideoProperties & RefAttributes<VideoRef>) => ReactNode;