NITISHRG15102007's picture
Finalize submission checks and long inference output format
fea495a verified
import * as react_jsx_runtime from 'react/jsx-runtime';
import { U as UnicornSceneProps } from './types-Bj2y1_cd.js';
/**
* React component for rendering Unicorn Studio WebGL animations.
*
* @remarks
* This component wraps Unicorn Studio's WebGL animation system for use in React applications.
* It handles script loading, scene initialization, placeholder display, and error states.
*
* The component requires either a `projectId` (to load from Unicorn Studio's servers)
* or a `jsonFilePath` (to load from a local JSON file).
*
* @param props - The component props
*
* @example
* Basic usage with project ID:
* ```tsx
* <UnicornScene
* projectId="your-project-id"
* width={800}
* height={600}
* />
* ```
*
* @example
* With placeholder and callbacks:
* ```tsx
* <UnicornScene
* projectId="your-project-id"
* placeholder="/images/loading.png"
* onLoad={() => console.log("Scene loaded!")}
* onError={(err) => console.error(err)}
* />
* ```
*
* @example
* Using local JSON file:
* ```tsx
* <UnicornScene
* jsonFilePath="/scenes/animation.json"
* scale={0.5}
* fps={30}
* />
* ```
*/
declare function UnicornScene({ projectId, jsonFilePath, sdkUrl, width, height, scale, dpi, fps, altText, ariaLabel, className, lazyLoad, production, paused, placeholder, placeholderClassName, showPlaceholderOnError, showPlaceholderWhileLoading, onLoad, onError, sceneRef, }: UnicornSceneProps): react_jsx_runtime.JSX.Element;
export { UnicornScene, UnicornSceneProps, UnicornScene as default };