Skip to content

Shadcn Google Maps

A drop-in address autocomplete using Google's AutocompleteSuggestion, with session tokens and typed results.

shadcn-google-maps.vercel.app

Shadcn Google Maps website screenshot
Added
Price
Free

About

About Shadcn Google Maps

Shadcn Google Maps is an address autocomplete component. Instead of the legacy AutocompleteService that many snippets still use, it calls AutocompleteSuggestion, which the site says Google recommends for new integrations. It handles session tokens for billing and returns typed place results.

Add it with the shadcn CLI using the places-autocomplete.json registry URL, then import PlacesAutocomplete from your ui folder. Props include className, an optional countryCode such as US, IN or GB, a placeholder, and an onPlaceSelect callback that receives the chosen place. The site calls it accessible, customizable and open source, and offers a Copy llms.txt button. The GitHub project, gurbaaz27/shadcn-google-maps, has a few dozen stars. It suits checkout, onboarding and delivery forms that need Google address data.

Shadcn Google Maps features

6 features

  • AutocompleteSuggestion from the Places API (New)
  • Session tokens for billing
  • Typed place results
  • Optional country restriction
  • onPlaceSelect callback
  • Copy-paste friendly and customizable

Install Shadcn Google Maps

1 command

Terminal

$ npx shadcn@latest add https://shadcn-google-maps.vercel.app/r/places-autocomplete.json

What you can build with Shadcn Google Maps

3 use cases

  • Capturing a delivery address at checkout
  • Restricting address search to one country
  • Pre-filling city and postcode fields from a selected place

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What Shadcn Google Maps is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro