@vctrl/viewer
Version:
vctrl/viewer is a React component library for rendering and interacting with 3D models. It's part of the vectreal ecosystem and is designed to work seamlessly with the vctrl/hooks package for model loading and management.
18 lines (17 loc) • 573 B
TypeScript
import { Object3D } from 'three';
import { EnvProps } from './scene-environment';
interface ModelProps {
/**
* The 3D object (three.js `Object3D`) to render in the scene.
*/
object: null | Object3D;
/**
* Environment options - specifically the props available on the "@react-three/drei" `Stage` component.
*/
envOptions?: EnvProps['stage'];
}
/**
* SceneModel component that renders a 3D model in a `Stage`.
*/
declare const SceneModel: (props: ModelProps) => import("react/jsx-runtime").JSX.Element | null;
export default SceneModel;