Skip to content
VenusUI
Get started

Globe Hero

A split hero with an interactive 3D globe, a live status and a list of regions.

Preview

Installation

npx shadcn@latest add @venusui/hero-08

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/hooks/use-scene-state.tsfrom use-scene-state
  • @/components/ui/dotted-globe.tsxfrom dotted-globe
  • @/components/ui/status-dot.tsxfrom status-dot
  • @/components/hero-08.tsx

Also adds the shadcn button component if your project doesn't have it yet.

Usage

The code behind the preview above.

hero-08-demo.tsx

import { Hero08 } from "@/components/hero-08"

export default function Hero08Demo() {
  return <Hero08 />
}

API reference

No props. Edit the content directly in the file.

Requirements

  • shadcn button, VenusUI dotted-globe (three.js) and status-dot. The CLI installs them.
  • A browser with WebGL for the globe.

Customization

  • The regions and status text are placeholders. Show your real regions and real status.

Accessibility

  • The globe can be focused and turned with the arrow keys. The status has visible text.

Troubleshooting

Something looks different from the preview.
Blocks use your project’s theme and your own shadcn components, so they follow your styles.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.