Map Embed
The place on a map — OpenStreetMap by default, lazy-loaded.
Preview
Usage
tsx
import { MapEmbed } from "zostel-ui";
<MapEmbed lat={32.2396} lng={77.1887} zoom={14} title="Map of Manali" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
lat / lng | number | — | Where. |
zoom | number | 15 | Google only; the OSM view shows ±0.01°. |
provider | "osm" | "google" | "osm" | The map service. |
title | string | "Map" | The iframe’s name for screen readers. |
aspectRatio | number | 16 / 9 | Width ÷ height. |
className | string | — | More classes, merged with the component’s own (tailwind-merge). |
lat / lngType:
numberDefault: —
Where.
zoomType:
numberDefault:
15Google only; the OSM view shows ±0.01°.
providerType:
"osm" | "google"Default:
"osm"The map service.
titleType:
stringDefault:
"Map"The iframe’s name for screen readers.
aspectRatioType:
numberDefault:
16 / 9Width ÷ height.
classNameType:
stringDefault: —
More classes, merged with the component’s own (tailwind-merge).