← Components

Dot Globe

Pro

A dotted three.js globe with arcs that fly between cities.

Backgrounds · ProInstall ↓
Open preview ↗
Loading the demoNew tab ↗

Customize

0.30
#ddfc3e
0.9 s
Your code
<DotGlobe />

Changes show live and stay in the address, so a link keeps them.

Code

This one is a Pro component

Pro components come with Pro Components, any Templates plan or All-Access. Sign in, or enter your licence key, to see the code here and copy it, or install it with the shadcn CLI below.

Install

With the shadcn CLI

Pro components install from a private registry that checks your licence key (Pro Components, a Templates plan or All-Access). Set it up once per project. The key stays in an environment variable and never goes into components.json.

1. Add the registry

Merge this into components.json.

components.json
{
  "registries": {
    "@dimaac-pro": {
      "url": "https://api.dimaac.com/v1/ui/r/{name}.json",
      "headers": { "Authorization": "Bearer ${DIMAAC_LICENSE_KEY}" }
    }
  }
}

2. Add your key

Put it in .env.local (or your shell) and keep that file out of git. The CLI fills in ${DIMAAC_LICENSE_KEY} from it.

.env.local
DIMAAC_LICENSE_KEY=your-licence-key

3. Add the component

npx shadcn@latest add @dimaac-pro/dot-globe

@dimaac-pro is the registry from step 1. More in Docs

By hand

npm install three
  1. Install the packages it uses: three.
  2. Copy the component file from the Code panel (once your licence key unlocks it) into components/dimaac/dot-globe.tsx.
  3. It's styled with Tailwind v4 classes. If that folder sits outside the places Tailwind scans, add it with @source in your CSS.
  4. Import it with import { DotGlobe } from "@/components/dimaac/dot-globe" and give its parent a size: it fills it.

Props

PropTypeDefaultDescription
dotColourstring"auto"Colour of the land dots. "auto" is ink on a light page and near-white on a dark one.
arcColourstring"#ddfc3e"Colour of the arcs, pulses and landing ripples. On light pages it is deepened so it still reads.
dotDensityDotDensity"medium"How many dots draw the land: low (2.2 degree spacing), medium (1.5) or high (1).
autoRotateSpeednumber0.3How fast the globe turns by itself, from 0 (still) to 1 (about one turn every 18 seconds).
arcsreadonly GlobeArc[]defaultArcsThe city pairs the arcs fly between, as [fromLat, fromLng, toLat, toLng].
arcIntervalnumber0.9Seconds between one arc launching and the next.
atmospherebooleantrueA soft glowing rim around the globe.
theme"auto" | "light" | "dark""auto"Which tuning to use. "auto" follows the page: data-theme, a dark class, or the system setting.
labelstring"A dotted globe with arcs flying between cities. Drag or use the arrow keys to spin it."What screen readers hear. The globe is a picture with drag and arrow-key controls.
classNamestring""Extra classes for the outer box. Give it a size (the globe fits inside it).

Use with AI

Agent prompt

Paste it into Claude Code, Cursor or any coding agent, or open it straight in a chat. It carries your Customize settings.

Prompt
Add the Dot Globe component (<DotGlobe />) from DiMaac UI to this project. It is a Pro component, so its source needs the owner's DiMaac licence key (Pro Components, a Templates plan or All-Access).

Docs: https://ui.dimaac.com/components/dot-globe

1. Add the Pro registry to components.json (merge it into "registries"). Don't write the key into the file:
{
  "registries": {
    "@dimaac-pro": {
      "url": "https://api.dimaac.com/v1/ui/r/{name}.json",
      "headers": { "Authorization": "Bearer ${DIMAAC_LICENSE_KEY}" }
    }
  }
}

2. The owner puts their licence key in .env.local (keep it out of git): DIMAAC_LICENSE_KEY=your-licence-key
   Ask them for it if it isn't set. Never print it or commit it.

3. Install it with:
npx shadcn@latest add @dimaac-pro/dot-globe

The registry item is https://api.dimaac.com/v1/ui/r/dot-globe.json and wants the header "Authorization: Bearer <licence key>".

Then use it like this:
import { DotGlobe } from "@/components/dimaac/dot-globe";
<DotGlobe />

It imports three; the CLI installs them. It uses Tailwind v4 classes, so make sure Tailwind scans that folder.
Give its parent a size, keep light and dark mode working and keep its prefers-reduced-motion fallback.
Full index for agents: https://ui.dimaac.com/llms.txt

Files agents read

llms.txt
Every component and how to install it
dot-globe.md
This page as Markdown: install, props and the full source

About

A three.js globe whose land is drawn with thousands of evenly spaced dots, wrapped in a soft atmosphere rim. Arcs rise between city pairs with a bright pulse riding the head, land with a ripple and draw away again, always launching on the side that faces the viewer. It turns slowly by itself, spins in on load, and can be dragged or thrown (mouse and touch) with inertia that settles back to the auto speed, or nudged with the arrow keys. The land comes from a 2.5 KB run-length mask built from Natural Earth's public-domain coastlines, so there is no texture to load. It follows the page theme (ink dots on light, near-white on dark, the arc colour deepened on paper so it still reads), caps the pixel ratio at 2, pauses off screen and frees every WebGL resource on unmount. With reduced motion it holds still and shows every arc drawn in full.

Installs to
components/dimaac/dot-globe.tsx
Uses
three
Tags
three, webgl, globe, map, hero, drag

Land outlines by Natural Earth on Natural Earth (Public domain).