A card with an interactive globe over a region list. Pick a region, the camera flies to it and the latency caption updates, then confirm.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- cobe
- lucide-react
Code
"use client";
import * as React from "react";
import { DeployRegionGlobe } from "@/registry/ruixenui/deploy-region-globe";
export default function DeployRegionGlobeDemo() {
const [picked, setPicked] = React.useState<string | null>(null);
return (
<div className="flex min-h-[560px] w-full flex-col items-center justify-center gap-5 bg-background px-6 py-12">
<DeployRegionGlobe
onConfirm={(region) => setPicked(`${region.name} (${region.code})`)}
/>
<p className="font-mono text-xs text-muted-foreground">
{picked
? `Selected ${picked}`
: "Pick a region — the globe flies to it — then confirm."}
</p>
</div>
);
}
































