Give each place a marker with its location and a label. Arcs and the zoom buttons are parts too.
edge-regions-globe.tsx
Globe
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | |
| draggable | boolean | true | A drag turns the globe and a pinch or a Ctrl/⌘ wheel zooms it. Default true. |
| variant | "aurora""brand""dot""ghost""ink""neon""night" | "dot" | The colors and shading. Default dot (theme colors). |
| framing | "full""horizon" | "full" | full: the whole globe. horizon: a large globe cut by the bottom edge. Default full. |
| value | string | null | — | The place at the front (a GlobeMarker value), controlled. null: none. |
| default | string | null | null | |
| on | — | ||
| default | "visitor" | GlobeLocation | GLOBE_DEFAULT_CENTER | The front the globe shows first: [latitude, longitude], or "visitor" (the time zone place). |
| spin | boolean | true | The globe turns on its own while nothing holds it. Default true. |
| spin | number | 6 | Degrees per second of the spin; below 0 turns the other way. Default 6 (a turn a minute). |
| paused | boolean | false | Holds every motion of the globe with no control on screen. Default false. |
| free | boolean | false | A flick keeps the globe spinning: it eases from the flick speed to the spin speed and never stops, even under the pointer. Default false (a release glides to a stop). |
| zoom | number | — | The zoom, 1 is the framing size. Controlled. |
| default | number | 1 | |
| on | — | ||
| min | number | 1 | |
| max | number | 3 | |
| tour | number | boolean | false | Walk the places with a value, one each tour ms (true: 4000). Default false. |
| scroll | number | 0 | Degrees the globe turns while it scrolls through the view. Default 0 (off). |
| cluster | boolean | false | Places too close to label fold into one bubble with a count. Default false. |
| map | number | — | Dots on the sphere (default 20,000; Ink doubles them). |
| labels | — | The words: the root name, the zoom buttons, and the cluster bubbles. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlobeMarker
| Prop | Type | Default | Description |
|---|---|---|---|
| location | GlobeLocation | — | [latitude, longitude] in degrees. |
| dot | number | GLOBE_MARKER_SIZE | Cobe's dot size, 0 to 1 of the sphere. Default 0.04. |
| color | string | — | A CSS color for this dot (a token works: var(--chart-3)). Default: the look's marker color. |
| value | string | — | The place id: a tap, the place list, the tour, and the root value use it. |
| name | string | — | The place name a cluster bubble shows (London +3). |
| pulse | boolean | false | A ring goes out from the dot every 1.6s: new data, a live place. |
| class | string | — | The classes of the marker anchor (the pulse ring and the no-WebGL dot take its color). |
| children | ReactNode | — | Its labels. |
GlobeLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| side | "bottom""end""start""top" | "top" | The side of its place it asks for; it moves to a free side when another label is there. |
| offset | number | 10 | px between the place and the label. Default 10. |
| variant | "pill""plain" | "pill" | pill (default): a small surface; plain: no look, for a card or an avatar of your own. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlobeArc
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | |
| from | GlobeLocation | — | |
| to | GlobeLocation | — | |
| color | string | — | A CSS color for this arc. Default: the look's arc color. |
| animate | boolean | false | The arc draws from its start with a bright head on entry (the draw clock, 0.9s). |
| travel | boolean | false | A dot rides the arc on a loop (2.4s a pass) and hides behind the rim. |
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |
GlobeZoom
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | "horizontal""vertical" | — | |
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlobeZoomIn
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| glass | "clear""dark""light" | — | |||||
| rounded | "default""full" | — | |||||
| size | "default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs" | — | |||||
| variant | "dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary" | — | |||||
| class | string | — | |||||
| busy | boolean | — | The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading. | ||||
| spinner | "center""start" | — | center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label. | ||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
GlobeZoomOut
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| glass | "clear""dark""light" | — | |||||
| rounded | "default""full" | — | |||||
| size | "default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs" | — | |||||
| variant | "dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary" | — | |||||
| class | string | — | |||||
| busy | boolean | — | The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading. | ||||
| spinner | "center""start" | — | center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label. | ||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
GlobePlaceList
<div>| Prop | Type | Default | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| size | "default""lg""sm""xs" | — | Height 24, 28, 32, or 36px. | ||||||||||||||||||
| class | string | — | |||||||||||||||||||
| variant | "default""outline" | — | The look of the items: outline (default) for a row of toggles, default for quiet rows with no border (a list of places or views in a panel, pressed on the accent fill). | ||||||||||||||||||
| spacing | 0.51234 | — | The gap between the items: 0.5 to 4 is 2 to 16px. Default 2 (8px). | ||||||||||||||||||
| rounded | "default""full" | — | |||||||||||||||||||
From Base UIToggleGroupBase UI docs | |||||||||||||||||||||
| disabled | boolean | false | Whether the toggle group should ignore user interaction. | ||||||||||||||||||
| orientation | "horizontal""vertical" | 'horizontal' | |||||||||||||||||||
| loop | boolean | true | Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys. | ||||||||||||||||||
| |||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||
GlobePlaceItem
<button>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||||||||||||||||||||||||
| size | "default""lg""sm""xs" | — | Height 24, 28, 32, or 36px. | |||||||||||||||||||||||||||||
| rounded | "default""full" | — | ||||||||||||||||||||||||||||||
From Base UIToggleBase UI docs | ||||||||||||||||||||||||||||||||
| pressed | boolean | — | Whether the toggle button is currently pressed. This is the controlled counterpart of defaultPressed. | |||||||||||||||||||||||||||||
| default | boolean | false | Whether the toggle button is currently pressed. This is the uncontrolled counterpart of pressed. | |||||||||||||||||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | |||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | |||||||||||||||||||||||||||||
| ← → | Turns the globe 15° west or east. |
|---|---|
| ↑ ↓ | Leans the globe 15° north or south, up to 60°. |
| +or- | Zooms in or out one step. |
| Page DownorPage Up | Turns the next or the previous place to the front. |
| Home | Clears the pick and turns the globe back to its start. |
| Escape | Clears the pick. A second Escape goes to the page. |
Built with
Installs with Globe
- Components
- Button,Button Group,Toggle Group





