Back to components
ComponentWidgetFree

Google Maps Embed React component

A Google Maps embed for one or more locations, with no API key needed: a hairline location list that crossfades the map, map/satellite and zoom controls, a darkened map for dark themes, directions and copy-address actions, live local time and an optional click-to-load consent screen.

About the Google Maps Embed component

Google Maps Embed puts a live Google map next to the places you want people to find: a list of locations on the side, the map on the right, and the actions visitors actually need, like directions, opening the place in Google Maps, copying the address and calling. It works without an API key, so you can drop it in and see a real map straight away.

Picking another location keeps the current map on screen until the next one has loaded and then fades it in, so there's no white flash. Map/satellite and zoom controls sit in a readout bar under the map, out of the way of Google's own controls, and the dark theme darkens the map itself to match.

When to use it

Use it on a contact page, a store locator with a few branches, an event venue page or the footer of a local business site, anywhere a visitor's next step is getting there.

For dozens of pins, clustering or custom markers, use the Google Maps JavaScript API or a library like MapLibre instead; an embed shows one place at a time.

Installation

Add the Google Maps Embed component to your project with the shadcn CLI. It lands in components/google-maps-embed.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/google-maps-embed

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install lucide-react clsx tailwind-merge

Related components

QR Code Widget
Free
SEO-ready
Business Hours
Free
Coin Flip Game
Free
Tic Tac Toe Game
Free
Latency Trace Diagram
Neural Logic Graph