227
A dotted world map drawn from a hand-made land mask, with one region lit up, live sessions pulsing across it and a switcher that moves the spotlight.
akaworld map·regions
Run this in any project set up for the shadcn CLI. It copies the Dot Map source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/dot-map.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { DotMap } from "@/components/dot-map";
export default function Page() {
return <DotMap />;
}A free React illustration in the Connections collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Dot Map source. Everything is optional unless it says required. It also accepts Omit<ComponentProps<"div">, "children" | "onChange">.
| Prop | Type | Default |
|---|---|---|
| region | WorldRegion | — |
| onRegionChange | (region: WorldRegion) => void | — |
| defaultRegion | WorldRegion | "europe" |
| autoCycle | boolean | true |
| cities | WorldCity[] | defaultCities |
| counts | Record<WorldRegion, number> | defaultCounts |
| title | string | "Live sessions" |