DS0
Components

Map

A map container component with marker support, ready for map provider integration.

Overview

Map provides a container for embedding interactive maps. Includes marker support and is designed to integrate with mapping libraries like Mapbox, Google Maps, or Leaflet.

Usage

<Map
  center={{ lat: 40.7128, lng: -74.006 }}
  zoom={12}
  markers={[
    { lat: 40.7128, lng: -74.006, label: 'NYC' },
  ]}
/>

API Reference

PropTypeDefaultDescription
center{ lat: number, lng: number }Map center coordinates
zoomnumber10Zoom level
markersMapMarker[][]Marker data
provider'mapbox' | 'google' | 'leaflet''leaflet'Map provider
heightstring'400px'Container height
ComponentWhen to Use Instead
CardContent container without map

On this page