An interactive 3D-tilting location card with expandable animated map, live indicator, and motion-based hover effects.
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
- react
- motion
Code
import { LocationMap } from "@/registry/gammaui/location-map"
export default function LocationMapDemo() {
return (
<main className="flex w-full items-center justify-center">
<div className="relative z-10 flex flex-col items-center gap-8">
{/* Optional subtle label */}
<p className="text-xs font-medium tracking-[0.2em] text-neutral-600 uppercase">
Current Location
</p>
<LocationMap
location="Berlin, Germany"
coordinates="52.5200° N, 13.4050° E"
/>
</div>
</main>
)
}
































