Getting Started
Components
Special Effects
Animations
Text Animations
Backgrounds
import { DottedMap } from "@/components/ui/dotted-map"
<div className="relative h-[400px] w-full overflow-hidden rounded-xl border">
<DottedMap />
</div>
Prop | Type | Default | Description |
---|---|---|---|
width | number | 150 | Width of the SVG map. |
height | number | 75 | Height of the SVG map. |
mapSamples | number | 5500 | Number of sample points for map generation. |
markers | Marker[] | [] | Array of markers to display on the map. |
dotColor | string | undefined | Color of the map dots (uses currentColor if not set). |
markerColor | string | "#FF6900" | Color of the markers. |
dotRadius | number | 0.22 | Radius of the map dots. |
className | string | undefined | Additional class names applied to the SVG. |
style | React.CSSProperties | undefined | Inline styles merged into the SVG. |