Installation
npx kinetic-ui-cli@latest add interactive-3d-modelArchitecture
This component is built on top of React Three Fiber and Drei. It leverages <PresentationControls> to allow users to intuitively click and drag the 3D model around, which snaps back to its original position using spring physics.
We also use <Environment> to apply High Dynamic Range (HDR) lighting, instantly giving standard materials realistic reflections and metallic properties.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { Interactive3dModel } from "@/components/creative/interactive-3d-model";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { Interactive3dModel } from "@/components/creative/interactive-3d-model";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<Interactive3dModel
/>
</div>
);
}