Globe Wireframe

globe with smooth city rotations, responsive design, and premium motion

Connecting the WorldThrough Innovation

Installation

npx shadcn@latest add https://scrollxui.dev/registry/globe-wireframe.json 

Usage

import GlobeWireframe from "@/components/ui/globe-wireframe";
<GlobeWireframe
  className="w-full h-full"
  variant="solid"
/>

Examples


Cities based Rotation

Connecting the WorldThrough Innovation

API Reference

Globe Wireframe

The Globe Wireframe component creates beautiful globe with smooth city rotations, responsive design, and premium motion

Props

PropertyTypeDefaultDescription
variant"wireframe" | "wireframesolid" | "solid""wireframe"
Rendering style of the globe.
scalenumber1
Scales the globe size relative to its container.
classNamestring"aspect-square w-full max-w-[600px]"
CSS classes applied to the globe container.
strokeColorstring"currentColor"
Stroke color for countries and outlines.
strokeWidthnumber1
Stroke width for country borders.
sphereOutlineColorstring"currentColor"
Outline color of the globe sphere.
sphereOutlineWidthnumber1
Width of the globe outline stroke.
showGraticulebooleantrue
Show latitude and longitude grid lines.
graticuleOpacitynumber0.2
Opacity of the graticule lines.
autoRotatebooleantrue
Automatically rotate the globe when idle.
autoRotateSpeednumber0.5
Speed of idle rotation.
rotateToLocationstring | [number, number]
Rotate globe to a city name or coordinates.
rotateCitiesstring[][]
Automatically rotate through listed cities.
rotationSpeednumber3000
Interval (ms) between city rotations.
enableInteractionbooleantrue
Enable drag interaction to rotate the globe.
countryFillColorstring
Fill color for countries in solid variant.
countryHoverColorstring
Hover color for countries (solid variant only).
backgroundColorstring"transparent"
Background color behind the globe sphere.

Built withby Ahdeetai.