Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Map Location Footer Block for React

A visit-us footer for a coworking space: the address, visiting days and a transit, car or bike choice that swaps the directions and the route on a greyscale street map drawn in a framed figure.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A visit-us footer for React with Base UI, split behind a hairline that runs from the page's top rule to the end of the page. The start half has the brand, one row of links in the nav labelled Footer, the postal address in an address, the days it is open to visitors, and a three-way choice (transit, car, bike) that swaps one sentence of directions. The end half is a framed figure with + marks on its corners: a street map drawn in greyscale, with streets, a river, a park and one pin, that traces the chosen route as a dashed line. It is a drawing for illustration, never a real map. A legal band runs under both halves. It's built from ToggleGroup, Guides and your theme's tokens.

FAQ

Is this a real map?

No. It's an inline SVG of an invented street grid, drawn from the theme's own tokens so it follows light and dark, and captioned as an illustration. There is no tile service, no key and no network request. To use a real map, replace the figure's contents with your provider's embed, and keep the toggle if you like.

What does the choice do?

Choosing transit, car or bike swaps the directions sentence and redraws the dashed route on the map. The three sentences share one grid cell, so the footer does not change height. A screen-reader-only status line speaks the new directions when the choice changes, and stays silent on load. Edit WAYS to change the sentences and the routes: each route is an SVG path in the map's 480 by 360 box. Pressing the chosen item again keeps it chosen, so one way is always active.

How do screen readers meet the map?

The drawing is hidden from them: everything it shows is in the text beside it. The address is an address, the visiting hours use time elements, and the figure has a caption. The map never mirrors in a right-to-left layout, since streets do not flip.

Are the address and the hours real?

No. Kinsale, Tanner Lane and Harlow Bridge are invented. Replace the address in the JSX and the days and times in the line under it.

How does it fit on a phone?

The map comes first at a 3:2 shape (the drawing is cropped to fit, with the pin kept in view), a rule falls under it, and then come the brand, the links, the address and the choice. Nothing scrolls sideways at 320 pixels.

  • Pro

    Contact Details Footer

    Company and places

    A contact-details footer for an accounting firm: the brand and two link groups on shared hairlines, and four contact points as cells in a definition list, each with an icon: email, phone, postal address and reply time.

  • Pro

    Contact Form Footer

    Company and places

    A contact-form footer for a hosting company: three short link groups on one half of a split, and on the other a compact message form in a card in card that checks itself and confirms in place.

  • Pro

    Support Hub Footer

    Company and places

    A support-hub footer for a help-desk product: a question and a row of help links, then three support channels as cells, live chat with an online status, email with its reply time and phone with its hours, each one link.

  • Pro

    An even two-column footer: the wordmark, description, social icons and legal line behind a divider from a numbered, two-column list of eight links.

  • Pro

    The classic link-column footer for an email API: a brand column with the wordmark, one sentence and four social links, four groups of links behind a split divider, and a legal band with the copyright and the policy links.

  • Pro

    A reverse split contact hero on solid rails: an abstract dot map with a pulsing marker per office fills the first half up to a divider, beside a headline, a Shine Button and three offices as ruled rows.