Current Location
Live
Berlin, Germany
Click to expand
Current Location
Click to expand
pnpm dlx shadcn@latest add @gammaui/location-map
import { LocationMap } from "@/components/gammaui/location-map"
export default function Page() {
return (
<div className="p-10">
<LocationMap
location="San Francisco, CA"
coordinates="37.7749° N, 122.4194° W"
/>
</div>
)
}<LocationMap /><LocationMap location="Berlin, Germany" coordinates="52.5200° N, 13.4050° E" /><LocationMap
className="max-w-sm"
location="Tokyo, Japan"
coordinates="35.6762° N, 139.6503° E"
/>| Prop | Type | Default | Description |
|---|---|---|---|
location | string | "San Francisco, CA" | Displayed location name |
coordinates | string | "37.7749° N, 122.4194° W" | Coordinates shown when expanded |
className | string | - | Optional wrapper classes |