{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "orbiting-circles",
  "title": "Orbiting Circles",
  "author": "VenusUI",
  "description": "Items placed evenly on a circle that orbit the center, staying upright.",
  "files": [
    {
      "path": "registry/default/ui/orbiting-circles.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface OrbitingCirclesProps {\n  /** Items placed evenly around the orbit, e.g. small icons. */\n  children: React.ReactNode\n  /** Orbit radius in pixels. */\n  radius?: number\n  /** Seconds per full orbit. */\n  duration?: number\n  /** Orbit counter-clockwise. */\n  reverse?: boolean\n  /** Draw the orbit path. */\n  path?: boolean\n  className?: string\n}\n\n/**\n * Places its children evenly on a circle and orbits them around the center\n * of the positioned parent, keeping each item upright. Stack several with\n * different radii. With reduced motion the items stay in place on the orbit.\n */\nfunction OrbitingCircles({ children, radius = 120, duration = 24, reverse = false, path = true, className }: OrbitingCirclesProps) {\n  const items = React.Children.toArray(children)\n\n  return (\n    <div data-slot=\"orbiting-circles\" className={cn(\"pointer-events-none absolute inset-0\", className)}>\n      {path ? (\n        <span\n          aria-hidden=\"true\"\n          className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full border border-dashed border-foreground/15\"\n          style={{ width: radius * 2, height: radius * 2 }}\n        />\n      ) : null}\n      {items.map((item, index) => {\n        const angle = (360 / items.length) * index\n        const vars = { \"--orbit-angle\": angle, \"--orbit-radius\": radius } as React.CSSProperties\n        return (\n          <div\n            key={index}\n            className=\"pointer-events-auto absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 animate-orbit motion-reduce:animate-none\"\n            style={{\n              ...vars,\n              // Starting position, also used as the resting position with reduced motion.\n              transform: `rotate(${angle}deg) translateY(${radius}px) rotate(${-angle}deg)`,\n              animationDuration: `${duration}s`,\n              animationDirection: reverse ? \"reverse\" : \"normal\",\n            }}\n          >\n            {item}\n          </div>\n        )\n      })}\n    </div>\n  )\n}\n\nexport { OrbitingCircles, type OrbitingCirclesProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-orbit": "orbit 24s linear infinite"
    }
  },
  "css": {
    "@keyframes orbit": {
      "0%": {
        "transform": "rotate(calc(var(--orbit-angle) * 1deg)) translateY(calc(var(--orbit-radius) * 1px)) rotate(calc(var(--orbit-angle) * -1deg))"
      },
      "100%": {
        "transform": "rotate(calc(var(--orbit-angle) * 1deg + 360deg)) translateY(calc(var(--orbit-radius) * 1px)) rotate(calc(var(--orbit-angle) * -1deg - 360deg))"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "effects",
    "animations"
  ],
  "type": "registry:ui"
}