The location element provides a Google Places search interface for users to select a location. It stores the full place data including coordinates, name, address, and optional metadata like ratings and photos.
interface PlaceValue { placeId: string // Google Places ID name: string // Place name address: string // Formatted address lat: number // Latitude lng: number // Longitude photos?: string[] // Photo URLs (optional) rating?: number // Place rating 1-5 (optional) userRatingsTotal?: number // Number of reviews (optional) types?: string[] // Place types (optional) website?: string // Website URL (optional) phoneNumber?: string // Phone number (optional)}
{ id: "businessAddress", inputType: "location", title: "Business Address", description: "Your business location for customers to find you", placeholder: "Search for your business...", validation: { required: true }}
Event venue:
{ id: "venue", inputType: "location", title: "Event Venue", description: "Where the event will be held", placeholder: "Search for a venue...", validation: { required: true }}
The actual Google Places picker is rendered in the Linktree admin (frontyard).
The dev server shows a preview placeholder.