Spline 3D Scene
Spline 3D Scene is a React and Tailwind CSS media component written for Uncode and yours to ship. Copy it and paste it into your project.
Uncode
media
What it is
Spline 3D Scene is a React and Tailwind CSS media component written for Uncode and yours to ship. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
Needs
npm i @splinetool/react-spline
Licence
This component was written for this catalogue. It is yours to ship in client work and in products you sell, under the terms of use.
Spline 3D Scene
'use client'
import { Suspense, lazy } from 'react'
const Spline = lazy(() => import('@splinetool/react-spline'))
interface SplineSceneProps {
scene: string
className?: string
}
export function SplineScene({ scene, className }: SplineSceneProps) {
return (
<Suspense
fallback={
<div className="w-full h-full flex items-center justify-center">
<span className="loader"></span>
</div>
}
>
<Spline
scene={scene}
className={className}
/>
</Suspense>
)
}