Skip to content

Globe

Free

A dotted 3D globe that you can drag, zoom, and send on a tour. It shows places, routes, live labels, and clusters, in seven looks.

  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 17, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Give each place a marker with its location and a label. Arcs and the zoom buttons are parts too.

edge-regions-globe.tsx

Globe

<div>
PropTypeDefaultDescription
childrenReactNode—
draggablebooleantrueA drag turns the globe and a pinch or a Ctrl/⌘ wheel zooms it. Default true.
variant"aurora""brand""dot""ghost""ink""neon""night""dot"The colors and shading. Default dot (theme colors).
framing"full""horizon""full"full: the whole globe. horizon: a large globe cut by the bottom edge. Default full.
valuestring | null—The place at the front (a GlobeMarker value), controlled. null: none.
defaultValuestring | nullnull
onValueChange—
defaultCenter"visitor" | GlobeLocationGLOBE_DEFAULT_CENTERThe front the globe shows first: [latitude, longitude], or "visitor" (the time zone place).
spinbooleantrueThe globe turns on its own while nothing holds it. Default true.
spinSpeednumber6Degrees per second of the spin; below 0 turns the other way. Default 6 (a turn a minute).
pausedbooleanfalseHolds every motion of the globe with no control on screen. Default false.
freeSpinbooleanfalseA flick keeps the globe spinning: it eases from the flick speed to the spin speed and never stops, even under the pointer. Default false (a release glides to a stop).
zoomnumber—The zoom, 1 is the framing size. Controlled.
defaultZoomnumber1
onZoomChange—
minZoomnumber1
maxZoomnumber3
tournumber | booleanfalseWalk the places with a value, one each tour ms (true: 4000). Default false.
scrollTurnnumber0Degrees the globe turns while it scrolls through the view. Default 0 (off).
clusterbooleanfalsePlaces too close to label fold into one bubble with a count. Default false.
mapSamplesnumber—Dots on the sphere (default 20,000; Ink doubles them).
labels—The words: the root name, the zoom buttons, and the cluster bubbles.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlobeMarker

PropTypeDefaultDescription
locationRequiredGlobeLocation—[latitude, longitude] in degrees.
dotSizenumberGLOBE_MARKER_SIZECobe's dot size, 0 to 1 of the sphere. Default 0.04.
colorstring—A CSS color for this dot (a token works: var(--chart-3)). Default: the look's marker color.
valuestring—The place id: a tap, the place list, the tour, and the root value use it.
namestring—The place name a cluster bubble shows (London +3).
pulsebooleanfalseA ring goes out from the dot every 1.6s: new data, a live place.
classNamestring—The classes of the marker anchor (the pulse ring and the no-WebGL dot take its color).
childrenReactNode—Its labels.

GlobeLabel

<div>
PropTypeDefaultDescription
side"bottom""end""start""top""top"The side of its place it asks for; it moves to a free side when another label is there.
offsetnumber10px between the place and the label. Default 10.
variant"pill""plain""pill"pill (default): a small surface; plain: no look, for a card or an avatar of your own.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlobeArc

<svg>
PropTypeDefaultDescription
childrenReactNode—
fromRequiredGlobeLocation—
toRequiredGlobeLocation—
colorstring—A CSS color for this arc. Default: the look's arc color.
animateInbooleanfalseThe arc draws from its start with a bright head on entry (the draw clock, 0.9s).
travelbooleanfalseA dot rides the arc on a loop (2.4s a pass) and hides behind the rim.
...props<svg> attributes—Every other attribute goes to the <svg>, with a ref.

GlobeZoom

<div>
PropTypeDefaultDescription
orientation"horizontal""vertical"—
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlobeZoomIn

<button>
PropTypeDefaultDescription
glass"clear""dark""light"—
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

GlobeZoomOut

<button>
PropTypeDefaultDescription
glass"clear""dark""light"—
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

GlobePlaceList

<div>
PropTypeDefaultDescription
size"default""lg""sm""xs"—Height 24, 28, 32, or 36px.
classNamestring—
variant"default""outline"—The look of the items: outline (default) for a row of toggles, default for quiet rows with no border (a list of places or views in a panel, pressed on the accent fill).
spacing0.51234—The gap between the items: 0.5 to 4 is 2 to 16px. Default 2 (8px).
rounded"default""full"—
From Base UIToggleGroupBase UI docs
disabledbooleanfalseWhether the toggle group should ignore user interaction.
orientation"horizontal""vertical"'horizontal'
loopFocusbooleantrueWhether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlobePlaceItem

<button>
PropTypeDefaultDescription
classNamestring—
size"default""lg""sm""xs"—Height 24, 28, 32, or 36px.
rounded"default""full"—
From Base UIToggleBase UI docs
pressedboolean—Whether the toggle button is currently pressed. This is the controlled counterpart of defaultPressed.
defaultPressedbooleanfalseWhether the toggle button is currently pressed. This is the uncontrolled counterpart of pressed.
disabledbooleanfalseWhether the component should ignore user interaction.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Give each place a GlobeMarker with a location of [latitude, longitude] and a value, so a press or the tour can pick it.
  • Put a GlobeLabel inside a marker for its name; the label moves to a free side and fades on the far side.
  • Use GlobeArc with animateIn and travel for a route that draws in and carries a dot.
  • Set framing="horizon" for the top of a hero, and cluster when many places sit close together.
← →Turns the globe 15° west or east.
↑ ↓Leans the globe 15° north or south, up to 60°.
+or-Zooms in or out one step.
Page DownorPage UpTurns the next or the previous place to the front.
HomeClears the pick and turns the globe back to its start.
EscapeClears the pick. A second Escape goes to the page.
Release
glide · a drag release glides on inertia and settles in about 1.5s
Free spin
glide · with `freeSpin`, a flick keeps its speed and eases to the spin speed over about 1.6s, and never stops
Turn to a place
chart · a spring turns the picked place to the front and zooms
Spin
progress · 6° a second by default (`spinSpeed`), at one speed
Pulse
flow · a ring goes out from the dot every 1.6s
Arc draw-in
draw · 900ms · ease-panel · the route draws from its start with a bright head
Labels
popup · 150ms · fade in on the near side, out on the far side

Built with

Installs with Globe

  1. AddedGlobe, with Button, Button Group, Toggle Group.
Open the release