# Orbiting Circles

> Icons orbit a central hub on hairline rings for integration sections. Set radius, speed and direction per ring; icons stay upright while they travel.

- Kind: Motion component (Motion)
- Docs: https://ui.minidev.pro/docs/orbiting-circles
- Source (registry JSON with the full file): https://ui.minidev.pro/r/orbiting-circles.json
- License: MIT. One file, yours to edit after install.

## When to use

Use it for an integrations or "works with your stack" section. Reach for OrbitLogoCluster for text logos on one ring, IconCloud for a 3D sphere of icons, and AnimatedBeam to show data flowing between named tools.

## Installation

### shadcn CLI (copies the source into your project)

```bash
npx shadcn@latest add @minidev/orbiting-circles
```

Writes `components/ui/orbiting-circles.tsx` and installs its npm dependencies. Older CLI versions: `npx shadcn@latest add https://ui.minidev.pro/r/orbiting-circles.json`.

### npm package

```bash
npm i minidev-ui-kit lucide-react motion
```

Add the tokens to your global stylesheet once:

```css
@import "tailwindcss";
@import "minidev-ui-kit/styles.css";
@source "../node_modules/minidev-ui-kit";
```

Next.js also needs `transpilePackages: ["minidev-ui-kit"]` in next.config.

## Import

After the shadcn install:

```tsx
import { OrbitingCircles } from "@/components/ui/orbiting-circles"
```

From the npm package:

```tsx
import { OrbitingCircles } from "minidev-ui-kit/premium/orbiting-circles"
```

## Usage

```tsx
import { OrbitingCircles } from "@/components/ui/orbiting-circles"

export function Example() {
  return (
    <OrbitingCircles />
  )
}
```

## Props

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `rings` | `Ring[]` | `DEFAULT` | no |  |
| `center` | `React.ReactNode` | - | no |  |
| `size` | `number` | `340` | no | Box size in pixels. |
| `className` | `string` | - | no |  |

## Examples

### Three rings

Each ring sets its own radius, lap time and direction; keep the inner radius above 56 so icons clear the centre tile.

```tsx
<OrbitingCircles
  size={296}
  rings={[
    { radius: 56, duration: 14, icons: [MailIcon, BellIcon] },
    { radius: 96, duration: 24, reverse: true, icons: [CalendarIcon, FileTextIcon, ReceiptIcon, LandmarkIcon] },
    { radius: 128, duration: 40, reverse: true, icons: [DatabaseIcon, CloudIcon, GlobeIcon, ShieldIcon, WebhookIcon, CreditCardIcon] },
  ]}
/>
```

### Custom centre

center replaces the bolt with your own mark; it sits on the ink tile so a letter or small logo reads well.

```tsx
<OrbitingCircles
  size={260}
  center={<span className="font-mono text-lg font-semibold tracking-[-0.02em]">Lu</span>}
  rings={[{ radius: 100, duration: 20, icons: [GitBranchIcon, MailIcon, MessageSquareIcon, CalendarIcon] }]}
/>
```

### Integrations section

Copy on one side and the orbit on the other; the grid stacks on small screens with the orbit centred.

```tsx
<div className="grid w-full max-w-3xl items-center gap-8 md:grid-cols-2">
  <div>
    <p className="text-xs font-medium tracking-[0.06em] text-accent-fg uppercase">Integrations</p>
    <h2 className="mt-2 text-2xl font-medium tracking-[-0.03em] text-fg">Works with the tools Northwind already runs on</h2>
    <p className="mt-3 text-sm leading-[1.6] text-fg-muted">Bank feeds, payroll, your CRM and your inbox all land in Lumen without an export.</p>
    <Button variant="outline" className="mt-5">Browse all 40 integrations <ArrowRightIcon /></Button>
  </div>
  <OrbitingCircles
    size={290}
    className="mx-auto"
    rings={[
      { radius: 60, duration: 16, icons: [MailIcon, CalendarIcon, MessageSquareIcon] },
      { radius: 125, duration: 28, reverse: true, icons: [LandmarkIcon, CreditCardIcon, DatabaseIcon, WebhookIcon, CloudIcon] },
    ]}
  />
</div>
```

## Accessibility

- Every ring and icon is `aria-hidden`, and the default centre is a lone icon, so screen readers get nothing. Name the integrations in nearby text, or pass a `center` that contains text.
- Under reduced motion the icons are placed on their rings and do not move.

## FAQ

### How do I add rings and choose their direction?

Pass `rings`: each has a `radius` in pixels, a `duration` in seconds per turn, `icons` (lucide components) and optional `reverse`. Keep the largest `radius` under half of `size` (340px by default) so icons stay inside the box.

### Is OrbitingCircles responsive?

It is a fixed `size` in pixels, set as inline width and height. On narrow screens pass a smaller `size` and smaller radii, or wrap it in a box that scales it down.

## Rules for generating code

- Use semantic tokens only (bg, surface, sunken, border, fg, fg-muted, fg-subtle, ink, accent, success, warning, danger). Never raw hex or palette steps like blue-500.
- Shadows only from the set: shadow-xs, shadow-sm, shadow-raised, shadow-md, shadow-lg, shadow-overlay.
- Numbers use tabular-nums. Dark mode is the `dark` class on <html>; components never branch on theme.

## Dependencies

- npm: `lucide-react`, `motion`

## Related

- [Orbit Logo Cluster](https://ui.minidev.pro/docs/orbit-logo-cluster/md): A cluster of logo chips orbiting a center badge in a slow continuous rotation, with labels counter rotating to stay upright. Pass center text and logos.
- [Icon Cloud](https://ui.minidev.pro/docs/icon-cloud/md): React 3D sphere of icons that rotates on its own, spins with inertia when dragged, scales and fades items by depth and pauses when it leaves the screen.
- [Animated Beam](https://ui.minidev.pro/docs/animated-beam/md): Light travels along curved paths from sources into a hub and out to a result, measured from the real DOM. Includes a Beam primitive to connect any two elements.
- [Ripple](https://ui.minidev.pro/docs/ripple/md): React background of concentric rings that pulse outward from the center or any point, staggered and fading, plus an extra ripple from each click or tap.
- [Animated Feature Row](https://ui.minidev.pro/docs/animated-feature-row/md): A row of feature cards that slide up with a staggered delay when scrolled into view. Pass title and description pairs; reduced motion keeps them still.
- [Card Tilt](https://ui.minidev.pro/docs/card-tilt/md): A card that tilts in 3D toward the pointer on springs, with an accent glare that follows the cursor. It stays flat when reduced motion is preferred.

---

All 557 components: https://ui.minidev.pro/llms.txt (full text: https://ui.minidev.pro/llms-full.txt).
