Loading preview
A tilted wall of vertically scrolling columns, for screenshots and showcases.
Items placed evenly on a circle that orbit the center, staying upright.
npx shadcn@latest add @venusui/orbiting-circlesRun 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/orbiting-circles.tsxThe code behind the preview above.
orbiting-circles-demo.tsx
import { Cloud, Database, GitBranch, Mail, Shield, Zap } from "lucide-react"
import { OrbitingCircles } from "@/components/ui/orbiting-circles"
const node = "flex size-9 items-center justify-center rounded-full border bg-card"
export default function OrbitingCirclesDemo() {
return (
<div className="relative flex size-72 items-center justify-center">
<span className="z-10 rounded-xl border bg-foreground px-3 py-2 text-sm font-semibold text-background">Core</span>
<OrbitingCircles radius={64} duration={18}>
<span className={node}><Database className="size-4" /></span>
<span className={node}><Shield className="size-4" /></span>
</OrbitingCircles>
<OrbitingCircles radius={120} duration={28} reverse>
<span className={node}><Cloud className="size-4" /></span>
<span className={node}><GitBranch className="size-4" /></span>
<span className={node}><Mail className="size-4" /></span>
<span className={node}><Zap className="size-4" /></span>
</OrbitingCircles>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Items to orbit, e.g. small icons. Required. |
| radius | number | 120 | Orbit radius in pixels. |
| duration | number | 24 | Seconds per orbit. |
| reverse | boolean | false | Orbit counter-clockwise. |
| path | boolean | true | Draw the dashed orbit line. |
Only the props above, plus className.
orbit keyframes. Works in Server Components.radius and reverse for rings.orbit keyframes are in your CSS; the parent must be relative with a size.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.
Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.