Components

Icon Cloud

A 3D icon cloud for React: icons or logos spread evenly over a rotating sphere, with the nearest ones larger and brighter. Hover to steer it, drag to fling it, and pass any React node or image URL. Ideal for tech stacks, integrations and partner walls.

  • 3D sphere
  • React nodes or images
  • Hover to steer
  • Drag with momentum
  • Screen-reader list
  • Pauses off-screen
  • React
  • TypeScript
  • Tailwind CSS
  • Motion
  • Postgres
  • Node.js
  • Edge functions
  • Git
  • GitHub
  • CLI
  • npm
  • Docker
  • Design system
  • Auth
  • Security
  • Deploys
  • Caching
  • Analytics
  • Workers
  • Webhooks
  • JSON APIs
  • MDX
  • CDN
  • AI

Installation

$ npx shadcn@latest add https://duskui.com/r/icon-cloud.json

The cloud is square and fills its parent up to max-w-[400px]. Icons are laid out on a Fibonacci sphere, so the same items always land in the same places, on the server and in the browser.

Usage

stack.tsx
import { Database, Github, Server } from "lucide-react"
import { IconCloud } from "@/components/dusk/icon-cloud/icon-cloud"

export function Stack() {
  return (
    <IconCloud
      label="Our stack"
      items={[
        { label: "GitHub", icon: <Github /> },
        { label: "Postgres", icon: <Database /> },
        { label: "Node.js", icon: <Server /> },
        { label: "Acme", src: "/logos/acme.svg" },
      ]}
    />
  )
}

Examples

Colorful icons, drag only

Style each icon however you like. steerOnHover={false} keeps a steady drift until it's dragged, and a larger maxScale exaggerates the depth.

  • Apple
  • Bird
  • Cat
  • Cherry
  • Citrus
  • Dog
  • Fish
  • Flower
  • Grape
  • Leaf
  • Rabbit
  • Snail
  • Squirrel
  • Sprout
  • Trees
  • Turtle

Drag to spin: it keeps its momentum, then settles back to a slow drift.

Give items an href to make them links. While anything inside has keyboard focus the sphere stops, so tabbing through never chases a moving target.

Connects to the tools you already use

Each icon is a link. Tab into the cloud and it stops spinning so you can pick one.

API Reference

Any other div prop is passed to the root. Rotation runs in a single animation frame loop that writes styles directly, so React never re-renders while it spins.

PropTypeDefaultDescription
itemsIconCloudItem[]—{ label, icon } or { label, src }, plus an optional href.
iconSizenumber40Width and height of each icon slot in px.
speednumber0.35Idle spin in radians per second.
steerOnHoverbooleantrueSpin toward the cursor while a mouse hovers.
draggablebooleantrueSpin by dragging, with momentum on release.
maxScalenumber1.1Scale of the nearest icons; the farthest are half of it.
labelstring"Icons"Accessible name of the list.
itemClassNamestring—Classes for each icon slot.

Accessibility

  • The icons render as a real <ul> with each item's label as text, so screen readers get a plain list.
  • Icons with an href are links; focusing one pauses the rotation.
  • With prefers-reduced-motion the sphere holds still and hover steering is off; dragging still turns it, without momentum.
  • The animation stops while the cloud is off-screen or the tab is hidden.