Amines UI
  • Components
  • Blocks
  • Illustrations
  • Interactions
  • Pricing
  • Docs

  • Installation
  • Install Next JS
  • Utilities

Buttons

  • Button
  • Reveal Button
  • Lightning Button
  • Gale Button
  • Water Splash Button
  • Ice Button
  • Rainbow Button

Cards

  • Sand Signature Dialog
  • Split Stack Photo
  • Split Stack
  • Split Stack Particles
  • Whiteboard
  • Fan Card
  • Cards Deck
  • Wobble Wallet
  • Hanging Cards
  • Plastic Cards Carousel
  • Infinite Card Stack
  • Zero Gravity Card

Carousel

  • Pixel Carousel
  • Book Carousel
  • Pixel Drift Carousel

Cursors

  • Frame Cursor
  • Liquid Cursor
  • Pixel Trail

Loaders

  • Particle Loader

Texts

  • Pixel Text
  • Ink Bloom Text
  • Pixel Roll
  • Emoji Morph Text
  • Inspect Text
  • Reactive Text
  • Morph Link Preview
  • Text Reveal
  • Decode Text

ASCII

  • ASCII Murmur
  • ASCII Card

Gooey

  • Gooey Menu
  • Gooey Search Bar
  • Gooey Slider
  • Gooey Dropdown
  • Gooey Text

Inputs

  • Cipher Password Input

  • Tear Note
  • Hover Preview List
  • Particle Orbit Chain
  • Wand Card
  • GitHub Contributions 3D
  • Scratch Card
  • Smart Wallet
  • DUO
  • Smart Lock
  • Pixel Cutter
  • Duo Flip
  • Paper Shredder
  • Blob Buddy
  • Book Shelf
  • Decode Reveal
  • Screen Dock
  • Logo Rain
  • Receipt Printer
  • Typewriter
  • Spiral Diary
  • Theme Transition
  • Contribution Race
  • Paper Globe
  • Edge Slide Image
  • Cursor Bloom Image

  • Keyboard Illustration
  • Note Folder
  • Clavis Keyboard
  • Spiral Book
  • Magnifier
  • Card Drawer
  • Iso Controller
  • Card Shelf
  • Signature Text
  • Folder Card
  • Laptop
  • Smart Briefcase
  • Glyph Sky
  • Globe

  • Logo Cloud
  • Shatter Stack

404 Pages

  • Pixel 404 Page
  • Retro 404

Index

  • Fold Index

Code Blocks

  • Morph Code Block
  • Terminal Steps
  • iMac Terminal
  • Terminal

CTAs

  • Component Orbit CTA
  • Component Library CTA
  • Interface Builder CTA

FAQs

  • FAQ 1
  • Parley FAQ
  • Query Loom FAQ
  • Turn About FAQ

Backgrounds

  • Glow Bars Background
  • Grid Press Background
  • Particle Shape Background
  • Particle Network
  • Tilted Marquee Background
  • Storm Background
  • Flow Streaks Background

Navbar

  • IOS Drop Down
  • Fluid Navbar

Pricing Blocks

  • Pricing Block

  • Card Footer
  • Bento Footer

  • Hero SectionsComing soon
  • Login / SignupComing soon
Amines UI Pro

Make every interface feel alive.

Amines UI is a complete set of components, blocks and illustrations to build your next website in minutes.

Upgrade or change anytime.
Drag to spin. Click a tile to open it.
Amines UI

Animated components, blocks, illustrations and templates for React, Next.js, Tailwind CSS and Motion. An ever-growing universe built for every kind of project.

A product by Yash Vishnoi

Building in public at @yash_vishnoi7

Socials
Components
ButtonReveal ButtonFrame CursorLiquid CursorSand Signature DialogSplit Stack PhotoSplit StackSplit Stack ParticlesWhiteboardFan Card
Visit all components
Illustrations
Keyboard IllustrationNote FolderClavis KeyboardSpiral BookMagnifierCard DrawerIso ControllerCard ShelfSignature TextFolder Card
Visit all illustrations
Blocks
Logo CloudCard FooterBento Footer
Visit all blocks
Code Blocks
Morph Code BlockTerminal StepsiMac Terminal
Visit all code blocks
CTAs
Component Orbit CTAComponent Library CTAInterface Builder CTA
Visit all ctas
Backgrounds
Glow BarsGrid PressParticle Shape
Visit all backgrounds
Navbar
Fluid NavbariOS Drop Down
Visit all navbar
Pricing Blocks
Pricing Block
Visit all pricing blocks
FAQs
FAQ 1Parley FAQQuery Loom FAQTurn About FAQ
Visit all faqs
Interactions
Tear NoteHover Preview ListParticle Orbit ChainWand CardGitHub Contributions 3D
Visit all interactions
Docs
InstallationInstall Next.jsUtilitiesCLI
© 2026 Amines UI. All rights reserved.Made with care for the details.
  1. Library
  2. /
  3. Globe

GlobeGlobe

A detailed dot-matrix globe drawn with Canvas 2D - no Three.js, no WebGL. Orthographic projection over a baked 1-degree land mask keeps it tiny and fast: twinkling land dots, a faint graticule, atmosphere glow, star field, an orbiting satellite with a trail, a latitude radar sweep, animated arcs between markers, pulsing marker rings, hover tooltips, drag-to-rotate with inertia, and a real day/night terminator driven by UTC time.

Canvas 2D · No WebGL

A planet drawn from eleven thousand dots

Drag to spin, flick for inertia, hover a city for its card — or let the arcs, the satellite and the radar sweep do the talking.

11,000surface dots
8colour themes
12default cities
0WebGL needed

Installation

  1. 1

    Install the component:

    npx shadcn@latest add https://ui.amines.fun/registry/globe.json
  2. 2

    Usage:

    jsx

    app/page.jsx

    1<Globe2  variant="ocean"3  markers={[4    { id: "blr", label: "Bengaluru", sub: "Engineering", lat: 12.97, lon: 77.59 },5    { id: "ldn", label: "London", lat: 51.5, lon: -0.12 },6    { id: "nyc", label: "New York", lat: 40.71, lon: -74.0 },7  ]}8  arcs={[9    { from: "blr", to: "ldn" },10    { from: "ldn", to: "nyc", color: "#f472b6" },11  ]}12/>

Props

PropTypeDefaultDescriptionRequired
variant"mono" | "ocean" | "aurora" | "sunset" | "neon" | "matrix" | "gold" | "earth""mono"Built-in colour theme. mono is the plain white one; earth pairs naturally with daylight. Theme objects are also exported as GLOBE_VARIANTS.No
colorsobject— (uses the selected variant)Override any theme key with hex strings: land (array of 1+ hex stops), ocean, oceanAlpha (0-1), oceanDensity (0-1), arc, head, marker, glow, glowAlpha (0-1), body ([inner, outer]), line, scan, orbit, star, colorBy. e.g. { land: ["#fff", "#f0abfc"], glow: "#e879f9" }.No
colorBy"solid" | "lat" | "lon" | "view"theme defaultHow land dots pick a colour from the theme's land stops: lat by latitude, lon by longitude, view by screen position (the gradient sweeps as the globe turns).No
dotsnumber11000Sample points over the whole sphere. 8000 is light, 11000 is detailed, 18000 is very detailed.No
dotSizenumber1Dot radius multiplier.No
dotShape"circle" | "square""circle"Dot shape. Square dots are the cheapest to draw.No
oceanDensitynumbertheme default (0.3 – 0.7)0 – 1, share of sampled ocean dots kept. Lower = sparser oceans.No
twinklebooleantrueLand dots shimmer subtly.No
graticulebooleantrueFaint latitude/longitude grid on the globe body.No
atmospherebooleantrueOuter glow plus a fresnel rim light on the globe edge.No
starsbooleantrueTwinkling star field behind the globe.No
orbitbooleantrueTilted orbit ring with a satellite and a fading trail.No
orbitSpeednumber1Satellite speed multiplier.No
scanbooleantrueA latitude radar sweep that lights up land and ocean dots as it passes.No
scanPeriodnumber7Seconds per scan sweep, including the pause between sweeps.No
daylightbooleanfalseShade the night side using the real UTC sun position.No
sunPosition[number, number]— (live UTC time)[lat, lon] to fix the sun instead of computing it from the current time.No
nightDimnumber0.220 – 1. Brightness of the night side when daylight is on.No
center[number, number][22, 105]Initial [lat, lon] facing the viewer.No
rollnumber0Screen-plane tilt of the globe in degrees (try -15).No
scalenumber0.8Globe radius as a share of the box; below 1 leaves room for arcs and the orbit ring.No
autoRotatebooleantrueSlow spin. Resumes smoothly after you let go of a drag.No
rotateSpeednumber6Auto-rotation speed in degrees per second. Negative reverses.No
pauseOnHoverbooleanfalsePause the spin while the pointer is over the globe.No
draggablebooleantrueDrag to rotate. Vertical page scroll still works on touch.No
inertiabooleantrueKeep spinning after a flick.No
revealbooleantrueIntro: dots bloom from the centre while the globe settles into place.No
introSpinnumber70Degrees the intro spins through during the reveal.No
entrancebooleantrueFade/scale-in of the whole component on mount.No
markersArray<{ id?: string | number; label?: string; sub?: string; lat: number; lon: number; color?: string; size?: number }>12 world citiesPoints drawn on the surface. id defaults to the array index; label/sub feed the tooltip; color (hex) and size override per marker.No
arcsArray<{ from: string | number | [number, number] | { lat: number; lon: number }; to: same; color?: string }>8 demo routes (only when `markers` is omitted)Animated arcs. from/to accept a marker id, a marker index, a [lat, lon] pair, or a { lat, lon } object. color overrides per arc.No
arcHeightnumber1Arc altitude multiplier.No
arcSpeednumber1Arc travel speed multiplier.No
trailnumber0.3Length of the bright arc trail as a 0 – 1 share of the arc.No
markerSizenumber1Marker size multiplier.No
pulsebooleantruePulsing ripple rings on markers.No
labels"hover" | "always" | "none""hover"Marker labels: drawn on the canvas next to markers, on hover only or permanently.No
onMarkerClick(marker, index) => void—Called with the raw marker object and its index when a marker is clicked.No
flyOnClickbooleantrueRotate the globe to a marker when it is clicked.No
flyDurationnumber1.4Seconds for a flyTo animation.No
focusOnstring | number | [number, number] | { lat: number; lon: number }—Fly to this target whenever it changes - marker id, index, [lat, lon], or { lat, lon }.No
renderTooltip(marker) => ReactNode—Replaces the default tooltip body. Receives the raw marker object.No
tooltipClassNamestring""Extra Tailwind classes for the default tooltip card.No
sizenumber— (responsive)Fixed pixel size. Omit for a responsive square that fills its parent's width.No
classNamestring""Classes for the outer wrapper, e.g. max-w-[560px] to cap width.No
styleReact.CSSProperties—Inline style for the outer wrapper.No
ariaLabelstring"Interactive globe"Accessible label for the canvas (rendered with role="img").No
childrenReactNode—Overlay content, centred over the globe (non-interactive layer).No
refReact.Ref<{ flyTo(target, opts?): void; getRotation(): { lat: number; lon: number } }>—Imperative API: flyTo(target, { duration }) accepts the same targets as focusOn; getRotation() returns the current { lat, lon }.No