Globe
5kb WebGL Globe
Installation
npx shadcn@latest add https://scrollx-ui.vercel.app/registry/globe.json
Usage
import { Globe } from "@/components/ui/globe";
<Globe
rotateCities={["new york", "london", "tokyo", "dubai"]}
rotationSpeed={3000}
markers={[
{ location: [40.7128, -74.006], size: 0.1 },
{ location: [51.5074, -0.1278], size: 0.1 },
{ location: [35.6762, 139.6503], size: 0.1 },
{ location: [25.2048, 55.2708], size: 0.1 }
]}
glowColor={[0.1, 0.8, 1]}
markerColor={[0.1, 0.8, 1]}
className="max-w-[800px]"
/>
Examples
Cities based Rotation
API Reference
Globe
The Globe
component creates beautiful 5kb WebGL Globe