Getting Started
Components
Device Mocks
Special Effects
Animations
Text Animations
Buttons
Globe
import { Globe } from "@/registry/magicui/globe";
export function GlobeDemo() {
return (
<div className="relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background px-40 pb-40 pt-8 md:pb-60">
<span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">
Globe
</span>
<Globe className="top-28" />
<div className="pointer-events-none absolute inset-0 h-full bg-[radial-gradient(circle_at_50%_200%,rgba(0,0,0,0.2),rgba(255,255,255,0))]" />
</div>
);
}
Installation
pnpm dlx shadcn@latest add @magicui/globe
Usage
import { Globe } from "@/components/magicui/globe";
<Globe />
Props
Prop | Type | Default | Description |
---|---|---|---|
className | string | - | The css classes for the component |
config | COBEOptions | {} | The configuration options for the globe. More details here |
Credits
This component is built on top of Cobe.
Limited Time Offer
Ship Faster with Magic UI ProMagic UI Pro
Stop building from scratch.
Get 8 production-ready templates and 50+ premium components that your users will love.
✓
Next.js 15 + TypeScript ready✓
Copy, paste, customize in minutes✓
Save 100+ hours of development