Skip to content
Address card, light
Light
Address card, dark
Dark

Every state

  • Address card, default, light
    Address card, default, dark

    default

  • Address card, hover, light
    Address card, hover, dark

    hover

  • Address card, focus, light
    Address card, focus, dark

    focus

  • Address card, copied, light
    Address card, copied, dark

    copied

  • Address card, no-map, light
    Address card, no-map, dark

    no-map

  • Address card, narrow, light
    Address card, narrow, dark

    narrow

Props

PropTypeDefaultWhat it does
titlestring"Harbour Museum"The place's name, above the address.
textstring | null"Main entrance on the quay, opposite the drawbridge"One line under the name (which entrance, which floor). Null or left out: no line.
addressstring[]["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.
detailsContactCardAddressDetail[] | 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.
routeLabelstring"Get directions"Route label.
newTabLabelstring"(opens in a new tab)"Read after the route label by screen readers.
copyLabelstring"Copy address"Copy label.
copiedLabelstring"Copied"Said beside the button and announced after a copy.
onCopy(address: string) => void–Called with the address after a copy.
classNamestring–Extra classes on the outer element.

More contact cards

All 8
contact-card-01 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans