Renders a search text input with location autosuggest.
You must pass both the search and the setSearchField function from the useSearchForm hook.
const { search, setSearchField } = useSearchForm();<LocationInput search={search} setSearchField={setSearchField} placeholder="Start typing a location..." /> Copy
const { search, setSearchField } = useSearchForm();<LocationInput search={search} setSearchField={setSearchField} placeholder="Start typing a location..." />
Renders a search text input with location autosuggest.
You must pass both the search and the setSearchField function from the useSearchForm hook.