Title 1
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Getting started
UI
W.Feature
Widget
The PointMap component allows you to create interactive maps with clickable points and popups. It’s useful for creating image-based navigation or highlighting specific areas in images.
---
import { PointMap } from '@yatoday/astro-ui/astro';
---
<PointMap
items={[
{
isPopupOpen: true,
x: 25,
y: 30,
title: "Title 1",
description: "Lorem ipsum dolor sit amet..."
},
{
x: 75,
y: 45,
title: "Title 2",
description: "Aliquam asperiores aspernatur..."
},
{
x: 50,
y: 70,
title: "Title 3",
description: "Aspernatur delectus eligendi et harum..."
},
{
x: 85,
y: 20,
title: "Title 4",
description: "Lorem ipsum dolor sit amet..."
},
{
x: 15,
y: 60,
title: "Title 5",
description: " Lorem ipsum dolor sit amet..."
}
]}
>
<div className="h-96 w-full"></div>
</PointMap>
Prop | Type | Default | Description |
---|---|---|---|
items | HotspotPoint [] | - | Array of data items |
via | Component | Card7 | Which card component should be used for rendering |
classes.container | string | h-96 | CSS classes for the wrapper container |
classes.card | Object | - | CSS classes for the Card{...} component |