@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.
23 lines (22 loc) • 725 B
TypeScript
import { ComponentProps, CSSProperties } from 'react';
import { EnvironmentProps, Stage } from '@react-three/drei';
export interface EnvProps {
/**
* Optional environment properties.
*/
env?: EnvironmentProps;
/**
* Optional properties for the Stage component.
*/
stage?: ComponentProps<typeof Stage>;
/**
* Optional background color for the viewer.
*/
backgroundColor?: CSSProperties['backgroundColor'];
}
export declare const defaultEnvOptions: EnvProps;
/**
* SceneEnvironment component that sets up the environment for a scene.
*/
declare const SceneEnvironment: (props: EnvProps["env"]) => import("react/jsx-runtime").JSX.Element;
export default SceneEnvironment;