Loading preview
A dotted 3D Earth with glowing routes between cities; pulses travel each arc and ripple where they land.
Cards arranged in a ring that turns in 3D, with buttons, arrow keys and announcements.
npx shadcn@latest add @venusui/carousel-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/carousel-3d.tsxThe code behind the preview above.
carousel-3d-demo.tsx
import { Carousel3d } from "@/components/ui/carousel-3d"
const projects = ["Atlas", "Beacon", "Comet", "Delta", "Echo", "Flux"]
export default function Carousel3dDemo() {
return (
<Carousel3d
label="Featured projects"
items={projects.map((name, i) => ({
id: name,
label: name,
content: (
<div className="flex h-full flex-col justify-between p-5">
<span className="font-mono text-xs text-muted-foreground">0{i + 1}</span>
<span className="text-2xl font-semibold tracking-tight">{name}</span>
</div>
),
}))}
/>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { id: string; label: string; content: ReactNode }[] | — | Cards. label is announced when a card reaches the front. Required. |
| itemWidth | number | 220 | Card width in pixels; the ring radius follows. |
| label | string | "Carousel" | Accessible name, e.g. “Featured projects”. |
| className | string | — | Classes for the outer element. |
Only the props above.
lucide-react, React 19 and Tailwind CSS v4.h-60; change it in the file for taller content.inert. The front card’s label is announced.itemWidth or use fewer items; the radius is calculated from both.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 dotted 3D Earth with glowing routes between cities; pulses travel each arc and ripple where they land.
A card that tilts toward the pointer while its layers rise off the surface, each to its own depth.
A WebGL sphere of evenly spaced dots that slowly turns; drag or use the arrow keys to spin it.