43 Pro components and page blocks

Get Pro

Dotted Globe

New

Preview

Customize

Speed6°/s
Tilt18°
Accent
Arc every0.9s
Dot size1.0

Usage

import { DottedGlobe } from "@/components/uibrik/dotted-globe/dotted-globe";

<DottedGlobe />

Installation

npx shadcn@latest add https://uibrik.com/r/dotted-globe.json
Adds the files to components/uibrik/dotted-globe. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/dotted-globe.

Props

DottedGlobe
speed
Type number
6
Turn speed.
tilt
Type number
18
Tilt toward the viewer; positive shows more of the north.
accent
Type string
"#3b82f6"
Colour of the arcs and markers.
arcs
Type boolean
true
Fly arcs between the markers.
arcEvery
Type number
0.9
Seconds between new arcs.
dotSize
Type number
1
Size of each land dot.
draggable
Type boolean
true
Spin it by dragging; it coasts back to its own pace.
markers
Type { lat: number; lon: number }[]
9 world cities
Cities the arcs fly between.
startLon
Type number
10
Longitude facing the viewer at first.
className
Type string
–
Classes for the box. It is square and fills its width; arcs may rise about a sixth of its width past its edges.