Globe
A rotating globe with labelled points sized by value.
When to use
- Showing where customers or events are in the world.
- A marketing or overview page with room for a showpiece.
When not to use
- Exact regional comparison matters; use a choropleth or table.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/globe
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
Globe
4 props
PropTypeDefault
label *string—
points *readonly GlobePoint[]—
format((n: number) => string)(n) => n.toLocaleString("en-US")
classNamestring—
Keyboard
- →
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- ↑
- Moves to the previous item or value.
- ↓
- Moves to the next item or value.
Accessibility
It exposes img and status semantics, with aria-label and aria-pressed kept in step with state. Changes that matter are announced through a live region.
Motion
- State changes animate with the library's shared durations and curves, so its timing matches every other part.
- Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/globe.mdThe index of every part is at /llms.txt.