BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ui-beats/orbiting-elements

Orbiting Elements

ui-beats/orbiting-elements
FreeComponent

The OrbitingElements component places children evenly around a circle and rotates them around a centre point, keeping each one upright.

Install it

npx shadcn@latest add https://uibeats.com/r/orbiting-elements.json

Source

components/demo/background/orbiting-elements.tsxuibeats.com/r/orbiting-elements.json
1"use client";
2
3import { motion, useReducedMotion } from "motion/react";
4import { Children, type ReactNode } from "react";
5
6interface OrbitingElementsProps {
7 children: ReactNode;
8 /** Orbit radius in pixels. */
9 radius?: number;
10 /** Seconds for one full revolution. */
11 duration?: number;
12 reverse?: boolean;
13 /** Draw the orbit path itself. */
14 showPath?: boolean;
15 /** Degrees to offset the first item by. */
16 startAngle?: number;
17 className?: string;
18}
19
20/**
21 * Places children evenly around a circle and rotates them around a centre
22 * point.
23 *
24 * Each item sits on a rotating arm and counter-rotates at the same speed, so
25 * it travels the orbit while staying upright — icons and text never end up
26 * upside down at the bottom of the circle.
27 */
28export function OrbitingElements({
29 children,
30 radius = 100,
31 duration = 20,
32 reverse = false,
33 showPath = true,
34 startAngle = 0,
35 className = "",
36}: OrbitingElementsProps) {
37 const items = Children.toArray(children);
38 const prefersReducedMotion = useReducedMotion();
39 const spin = reverse ? -360 : 360;
40
41 const transition = {
42 duration,
43 repeat: Infinity,
44 ease: "linear" as const,
45 };
46
47 return (
48 <div
49 className={`relative ${className}`}
50 style={{ width: radius * 2, height: radius * 2 }}
51 >
52 {showPath ? (
53 <div
54 aria-hidden="true"
55 className="absolute inset-0 rounded-full border border-dashed border-border"
56 />
57 ) : null}
58
59 {items.map((item, index) => {
60 const angle = startAngle + (360 / items.length) * index;
61
62 return (
63 <motion.div
64 key={index}
65 className="absolute top-1/2 left-1/2 size-0"
66 // The arm: rotates around the centre, carrying the item at
67 // `radius` along its length.
68 initial={{ rotate: angle }}
69 animate={
70 prefersReducedMotion ? undefined : { rotate: angle + spin }
71 }
72 transition={transition}
73 >
74 {/* `w-max` on both wrappers matters: the arm above is `size-0` so
75 the orbit pivots on a point, and without it these inherit a
76 zero-width containing block and squash the item into a sliver. */}
77 <div
78 className="w-max"
79 style={{ transform: `translateX(${radius}px)` }}
80 >
81 <motion.div
82 // Counter-rotation, same duration and easing, so the item
83// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • components/ui/orbiting-elements.tsx

Facts

Registry
ui-beats
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-12
Last confirmed
today

Go to the source

uibeats.com Raw registry item This item as JSON

More from ui-beats

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Beamanimated-beamui-beatsComponentsFree1 dep
Bouncebounceui-beatsComponentsFree1 dep
Dockdockui-beatsComponentsFree1 dep
Fade Infade-inui-beatsComponentsFree1 dep
Fade In Unblurfade-in-unblurui-beatsComponentsFree1 dep
Flip Cardflip-cardui-beatsComponentsFree2 deps
Glowing Cardglowing-cardui-beatsComponentsFree1 dep
Gradient Flowgradient-flowui-beatsComponentsFree1 dep
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex