A location card with a real aerial city photograph (restyled to match the theme; a procedural street map is the fallback when mapImage is empty) that morphs into a large map panel when clicked: the card grows into place while the map zooms out, the pin drops, the route draws from your position to the door and a details column slides in with travel modes, ETA, hours, copy address and directions. Escape or the close button morphs it back.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { ExpandMapCard } from "@/components/hyperblur-pro/expand-map-card"
<ExpandMapCard place="Northlight Studio" address="214 Harbor Avenue" onDirections={() => window.open(mapsUrl)} />| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "Visit us" | Small label above the title. |
| title | string | "Find the studio in one tap." | Section heading beside the card. |
| text | string | "A compact location card..." | Supporting paragraph. |
| place | string | "Northlight Studio" | Name of the location. |
| category | string | "Design studio" | Small label above the name in the expanded panel. |
| address | string | "214 Harbor Avenue, Unit 3" | Street address. |
| city | string | "Riverside District" | Second address line. |
| distance | string | "1.8 km" | Distance shown on the card and in the panel. |
| hours | string | "Open now · until 7 pm" | Opening hours. The part before the dot is shown as a status chip. |
| phone | string | "+1 555 0142" | Phone row in the panel. Pass an empty string to hide it. |
| modes | { label: string; eta: string }[] | Walk, Bike, Drive | Travel modes with their ETA. |
| accent | string | "#ff6a3d" | Color of the pin, route and primary button. |
| theme | "dark" | "light" | "dark" | Dark or light map style. |
| mapImage | string | "https://images.unsplash.com/photo-1473951574080-..." | Aerial photograph of a city at dusk used as the map layer. Pass an empty string to use the procedural city map instead. |
| seed | number | 7 | Seed for the procedural city blocks (only used when mapImage is empty). |
| demo | boolean | true | Opens the panel once when the section first enters the viewport, unless the visitor already interacted. |
| onDirections | () => void | Called when the Directions button is pressed. |
Source code is included in Standard and above