sigilUI

Globe Diagram

Illustrate geographic connections on a globe.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { GlobeDiagram } from "@sigil-ui/components";

Usage

<GlobeDiagram size={320} cities={[{ label: "San Francisco", lat: 37.77, lon: -122.42 }, { label: "London", lat: 51.5, lon: -0.12 }, { label: "Singapore", lat: 1.35, lon: 103.82 }, { label: "Tokyo", lat: 35.68, lon: 139.69 }]} />

Props

PropTypeDefaultDescription
sizenumber—Sets the component's size.
citiesGlobeCity[]—Cities configuration.
dotColorstring—Dot Color configuration.
arcColorstring—Arc Color configuration.
rotationnumber—Rotation configuration.

Token integration

CSS VariablePurpose
--s-text-mutedText muted
--s-primaryPrimary
--s-border-mutedBorder muted
--s-font-monoFont mono