# Country Flags Globe

> Interactive 3D world globe that floats each country's flag above its real location. Pass ISO country codes; coordinates for 250 countries and territories are built in. Theme-aware (Tailwind v3 and v4), drag or arrow-key rotation, SSR-safe.

- Author: [DHxWhy](https://21st.dev/@dhxwhy)
- License: mit
- Tags: Map, Data Visualization, Globe, 3D, Location
- npm dependencies: cobe, country-flag-icons
- Live preview: https://21st.dev/@dhxwhy/components/flag-globe

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/dhxwhy/flag-globe?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/map.md
