Framework integration
The RhinoArtisan Viewer is framework-agnostic and can be integrated into any modern frontend application, including Angular, Vue, React, Svelte, or plain JavaScript. Depending on your architecture, th
React
import { useRef, useEffect } from "react";
import "rhinoartisan-web-3d";
function ViewerComponent() {
const viewerRef = useRef(null);
useEffect(() => {
if (viewerRef.current) {
viewerRef.current.options = {
model: {
url: "path/to/your/model.glb",
},
};
}
}, []);
return (
<div style={{ width: "100%", height: "600px" }}>
<rhinoartisan-web-3d ref={viewerRef} />
</div>
);
}Vue 3
Angular
Basic Configuration
Minimal Structure
Complete Basic Configuration
Key Concepts
1. Web Component
2. Options vs API
3. UUIDs and Materials
4. Events
5. Async Loading
Common Examples
Example 1: Simple Viewer
Example 2: Control Buttons
Example 3: Materials Gallery (React)
Next Steps
Common Troubleshooting
Model doesn't show
Materials don't change
Slow performance
Support
Last updated
Was this helpful?