@react-three/uikit
Version:
Build performant 3D user interfaces with react-three-fiber and yoga.
13 lines (12 loc) • 531 B
TypeScript
import { ReactNode, RefAttributes } from 'react';
import { ImageProperties } from './image.js';
import { ComponentInternals } from './ref.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;