Loading preview
A tilted wall of vertically scrolling columns, for screenshots and showcases.
A CSS-only cube with six content faces that tumbles slowly and pauses on hover.
npx shadcn@latest add @venusui/cube-3dRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/cube-3d.tsxThe code behind the preview above.
cube-3d-demo.tsx
import { Cube3d } from "@/components/ui/cube-3d"
export default function Cube3dDemo() {
return <Cube3d faces={["Design", "Build", "Test", "Ship", "Learn", "Repeat"]} />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| faces | ReactNode[] | — | Up to six faces: front, right, back, left, top, bottom. Required. |
| size | number | 160 | Edge length in pixels. |
| duration | number | 14 | Seconds per full turn. |
All <div> props except children.
cube-3d keyframes and --animate-cube-3d. No JavaScript; works in Server Components.overflow: hidden and transform can flatten 3D. Keep the cube’s own wrapper free of transforms.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A tilted wall of vertically scrolling columns, for screenshots and showcases.
A WebGL field of points rolling like a wave, for hero and section backgrounds.
A large screen, tipped back in 3D, that swings upright as it scrolls into view.