Get Started

Next

A place autocomplete component built for shadcn/ui, following the same design patterns and styles. Uses OSM and Photon, both open-source libraries, to provide geocoding functionality.

Prerequisite

Before installing, make sure you already have shadcn/ui set up in your project.

Installation

pnpm dlx shadcn@latest add https://shadcn-place-autocomplete.vercel.app/r/place-autocomplete.json

Usage

import { PlaceAutocomplete } from "@/components/ui/place-autocomplete"
 
export function SearchPlace() {
    return <PlaceAutocomplete />
}