{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "orbit-icons",
  "type": "registry:component",
  "title": "Orbit Icons",
  "description": "A central hub with concentric rings of icon tiles that orbit at different speeds and stay upright. Hovering pauses the motion.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "motion",
    "orbit",
    "icons",
    "integrations",
    "rings",
    "hub",
    "logo"
  ],
  "docs": "https://hyperblur.dev/effects/orbit-icons",
  "files": [
    {
      "path": "registry/hyperblur/orbit-icons.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/orbit-icons.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface OrbitItem {\n  icon: React.ReactNode;\n  label: string;\n}\n\nexport interface OrbitIconsProps extends React.HTMLAttributes<HTMLDivElement> {\n  items?: OrbitItem[][];\n  radii?: number[];\n  duration?: number;\n  accent?: string;\n  children?: React.ReactNode;\n}\n\nconst css = `\n@keyframes hb-orb-spin { to { transform: rotate(360deg); } }\n@keyframes hb-orb-unspin { to { transform: rotate(-360deg); } }\n@keyframes hb-orb-breathe {\n  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); }\n  50% { opacity: .9; transform: translate(-50%, -50%) scale(1.06); }\n}\n.hb-orb {\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  max-width: 100%;\n  aspect-ratio: 1 / 1;\n  container-type: inline-size;\n  font-family: inherit;\n  color: #ededed;\n}\n.hb-orb *, .hb-orb *::before, .hb-orb *::after { box-sizing: border-box; }\n.hb-orb-glow {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  width: 46%;\n  height: 46%;\n  border-radius: 50%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-orb-a) 55%, transparent), color-mix(in srgb, var(--hb-orb-a) 0%, transparent));\n  filter: blur(6px);\n  transform: translate(-50%, -50%);\n  animation: hb-orb-breathe 5s ease-in-out infinite;\n  pointer-events: none;\n}\n.hb-orb-ring {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  width: calc(var(--hb-orb-r) * 100%);\n  height: calc(var(--hb-orb-r) * 100%);\n  margin-left: calc(var(--hb-orb-r) * -50%);\n  margin-top: calc(var(--hb-orb-r) * -50%);\n  border-radius: 50%;\n  animation: hb-orb-spin var(--hb-orb-d) linear infinite;\n  animation-direction: var(--hb-orb-dir);\n}\n.hb-orb-ring::before, .hb-orb-ring::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  padding: 1px;\n  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n  -webkit-mask-composite: xor;\n  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);\n  pointer-events: none;\n}\n.hb-orb-ring::before {\n  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 75%);\n}\n.hb-orb-ring::after {\n  background: conic-gradient(from var(--hb-orb-o), transparent 0deg, color-mix(in srgb, var(--hb-orb-a) 85%, transparent) 50deg, transparent 110deg, transparent 180deg, color-mix(in srgb, var(--hb-orb-a) 45%, transparent) 230deg, transparent 290deg);\n  opacity: .8;\n}\n.hb-orb-arm {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  width: 0;\n  height: 0;\n  transform: rotate(var(--hb-orb-t)) translateX(calc(var(--hb-orb-r) * 50cqw)) rotate(calc(var(--hb-orb-t) * -1));\n}\n.hb-orb-tile {\n  position: absolute;\n  left: 0;\n  top: 0;\n  display: grid;\n  place-items: center;\n  width: clamp(24px, 11.5cqw, 60px);\n  height: clamp(24px, 11.5cqw, 60px);\n  margin: calc(clamp(24px, 11.5cqw, 60px) / -2) 0 0 calc(clamp(24px, 11.5cqw, 60px) / -2);\n  border-radius: 28%;\n  background: linear-gradient(160deg, #1c1c1f, #0e0e10);\n  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px -6px rgba(0, 0, 0, 0.8);\n  color: #ededed;\n  animation: hb-orb-unspin var(--hb-orb-d) linear infinite;\n  animation-direction: var(--hb-orb-dir);\n  transition: box-shadow .25s ease, color .25s ease;\n}\n.hb-orb-tile:hover {\n  color: var(--hb-orb-a);\n  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-orb-a) 60%, transparent), 0 0 18px -2px color-mix(in srgb, var(--hb-orb-a) 55%, transparent);\n}\n.hb-orb-tile svg { width: 48%; height: 48%; }\n.hb-orb:hover .hb-orb-ring, .hb-orb:hover .hb-orb-tile { animation-play-state: paused; }\n.hb-orb-hub {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  display: grid;\n  place-items: center;\n  width: 24%;\n  height: 24%;\n}\n.hb-orb-mark {\n  display: grid;\n  place-items: center;\n  width: 100%;\n  height: 100%;\n  border-radius: 30%;\n  background: linear-gradient(150deg, color-mix(in srgb, var(--hb-orb-a) 85%, #ffffff), var(--hb-orb-a) 45%, color-mix(in srgb, var(--hb-orb-a) 60%, #000000));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 30px -8px color-mix(in srgb, var(--hb-orb-a) 80%, transparent);\n  color: #ffffff;\n}\n.hb-orb-mark svg { width: 52%; height: 52%; }\n@media (prefers-reduced-motion: reduce) {\n  .hb-orb-ring, .hb-orb-tile, .hb-orb-glow { animation: none; }\n}\n`;\n\nfunction Glyph({ d }: { d: string }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.8} strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d={d} />\n    </svg>\n  );\n}\n\nexport const orbitGlyphs = {\n  bolt: \"M13 3L5 14h6l-1 7 8-11h-6z\",\n  cube: \"M12 3l8 4.5v9L12 21l-8-4.5v-9zM4 7.5l8 4.5 8-4.5M12 12v9\",\n  chat: \"M5 5h14v10h-8l-4 4v-4H5z\",\n  cloud: \"M7 18a4 4 0 0 1-.6-7.95A6 6 0 0 1 18 9.5a4.25 4.25 0 0 1-.5 8.5z\",\n  code: \"M9 7l-5 5 5 5M15 7l5 5-5 5M13.5 5l-3 14\",\n  chart: \"M4 20h16M7 16v-5M12 16V7M17 16v-8\",\n};\n\nconst defaultItems: OrbitItem[][] = [\n  [\n    { icon: <Glyph d={orbitGlyphs.bolt} />, label: \"Automations\" },\n    { icon: <Glyph d={orbitGlyphs.code} />, label: \"API\" },\n  ],\n  [\n    { icon: <Glyph d={orbitGlyphs.cube} />, label: \"Packages\" },\n    { icon: <Glyph d={orbitGlyphs.chat} />, label: \"Messages\" },\n  ],\n  [\n    { icon: <Glyph d={orbitGlyphs.cloud} />, label: \"Storage\" },\n    { icon: <Glyph d={orbitGlyphs.chart} />, label: \"Analytics\" },\n  ],\n];\n\nconst defaultRadii = [0.44, 0.7, 0.96];\n\nexport function OrbitIcons({\n  items = defaultItems,\n  radii = defaultRadii,\n  duration = 22,\n  accent = \"#2f7bff\",\n  children,\n  className = \"\",\n  style,\n  ...rest\n}: OrbitIconsProps) {\n  const rings = Math.max(items.length, radii.length);\n  const base = Math.max(1, duration);\n\n  const vars = {\n    \"--hb-orb-a\": accent,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <div className={`hb-orb ${className}`} style={vars} {...rest}>\n      <style href=\"hb-orbit-icons\" precedence=\"default\">{css}</style>\n      <div className=\"hb-orb-glow\" aria-hidden=\"true\" />\n      {Array.from({ length: rings }, (_, ring) => {\n        const r = Math.min(1, Math.max(0.1, radii[ring] ?? defaultRadii[Math.min(ring, defaultRadii.length - 1)]));\n        const list = items[ring] ?? [];\n        const offset = ring * 47;\n        const d = base * (1 + ring * 0.55);\n        return (\n          <div\n            key={ring}\n            className=\"hb-orb-ring\"\n            role={list.length ? \"list\" : undefined}\n            aria-hidden={list.length ? undefined : true}\n            style={\n              {\n                \"--hb-orb-r\": r.toFixed(3),\n                \"--hb-orb-d\": `${d.toFixed(2)}s`,\n                \"--hb-orb-dir\": ring % 2 === 1 ? \"reverse\" : \"normal\",\n                \"--hb-orb-o\": `${(offset * 3) % 360}deg`,\n              } as React.CSSProperties\n            }\n          >\n            {list.map((item, i) => (\n              <span\n                key={`${item.label}-${i}`}\n                className=\"hb-orb-arm\"\n                role=\"listitem\"\n                style={{ \"--hb-orb-t\": `${((360 / list.length) * i + offset).toFixed(2)}deg` } as React.CSSProperties}\n              >\n                <span className=\"hb-orb-tile\" role=\"img\" aria-label={item.label} title={item.label}>\n                  {item.icon}\n                </span>\n              </span>\n            ))}\n          </div>\n        );\n      })}\n      <div className=\"hb-orb-hub\">\n        {children ?? (\n          <span className=\"hb-orb-mark\" role=\"img\" aria-label=\"Hub\">\n            <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n              <path d=\"M8 5h3.2L7.6 19H4.4zM13.4 5h3.2L13 19H9.8zM18.8 5H22l-3.6 14h-3.2z\" />\n            </svg>\n          </span>\n        )}\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}