Skip to content

Map

Mapbox GL map with markers, popups and controls; loaded on demand.

Installation

bun add @xerobi/ui
import { Map, MapControls, MapMarker, MapPopup } from "@xerobi/ui/map"

This component is client-side. In Astro, hydrate it with a client directive.

API reference

Map

PropTypeDescription
classNamestring

MapControls

PropTypeDescription
hideScaleboolean
hideGeolocateboolean
hideFullscreenboolean
hideNavigationboolean
slotProps{ scale?: ScaleControlProps | undefined; geolocate?: GeolocateControlProps | undefined; fullscreen?: FullscreenControlProps | undefined; navigation?: Navigat...

MapMarker

No props of its own.

MapPopup

No props of its own.

Search documentation

Search pages, components and blocks.