Globe

Motion

A React dotted globe drawn on a plain canvas without WebGL, with auto rotation, drag with inertia, keyboard control, and labelled markers joined by animated arcs.

src/registry/premium/globe.tsx/r/globe.json

Installation#

bash
npx shadcn@latest add @minidev/globe

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/globe.json

Usage#

tsx
import { Globe } from "@/components/ui/globe"

export function Example() {
  return <Globe />
}

API reference#

Globe props
PropTypeDefault
markersGlobeMarker[]DEFAULT_MARKERS
dotsnumber2000
speednumber6
arcsbooleantrue
align"left" | "center" | "right""right"
colorstring"var(--fg-muted)"
accentstring"var(--accent)"
classNamestring-
childrenReact.ReactNode-

Dependencies#

npm

lucide-reactmotion

Built from

All Animated React components