

Every state


default


hover


focus


copied


no-map


narrow
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | "Harbour Museum" | The place's name, above the address. |
| text | string | null | "Main entrance on the quay, opposite the drawbridge" | One line under the name (which entrance, which floor). Null or left out: no line. |
| address | string[] | ["Kade 12", "1781 AB Westerhaven", "Netherlands"] | The address, one line per item, as it goes on an envelope. |
| map | { src: string; alt: string; width: number; height: number; fit?: "cover" | "contain" } | null | { src: "/components/contact-card/contact-card-address/map.webp", alt: "Aerial photo of the old town around the museum… | A static map or aerial photo of the area, drawn with a pin in its centre. Null or left out: no map. |
| details | ContactCardAddressDetail[] | null | [ { icon: "train-front", text: "8 minutes' walk from Westerhaven station" }, { icon: "car", text: "Parking garage Mar… | Practical lines for getting there. Null or left out: no list. |
| routeUrl | (address: string) => string | (a) => `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(a)}` | Builds the route link from the address on one line. The default opens Google Maps directions. |
| routeLabel | string | "Get directions" | Route label. |
| newTabLabel | string | "(opens in a new tab)" | Read after the route label by screen readers. |
| copyLabel | string | "Copy address" | Copy label. |
| copiedLabel | string | "Copied" | Said beside the button and announced after a copy. |
| onCopy | (address: string) => void | – | Called with the address after a copy. |
| className | string | – | Extra classes on the outer element. |
More contact cards
All 8contact-card-01 is in UI ProGet UI Pro, €199


