A cobe globe component.
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
- react
- react-spring
Code
"use client"
import { Cobe } from "@/registry/eldoraui/cobe-globe"
export function CobeGlobeDemo() {
return (
<div className="bg-background relative z-10 h-[300px] w-full overflow-hidden rounded-lg border sm:h-[550px] md:h-[600px]">
<Cobe
variant="default"
phi={0}
theta={0.2}
mapSamples={16000}
mapBrightness={1.8}
mapBaseBrightness={0.05}
diffuse={3}
dark={1.1}
baseColor="#ffffff"
markerColor="#fb6415"
markerSize={0.05}
glowColor="#ffffff"
scale={1.0}
offsetX={0.0}
offsetY={0.0}
opacity={0.7}
/>
</div>
)
}
































