āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/magicuidesign/magicui/components/dotted-map ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
npx shadcn@latest add @magicui/dotted-map
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="dotted-map" /><Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </Tabs>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. |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā