Websites v4 docs v5.2.4
    Preparing search index...
    • Renders a search text input with location autosuggest.

      You must pass both the search and the setSearchField function from the useSearchForm hook.

      Type Parameters

      Parameters

      • __namedParameters: LocationInputProps<S>

      Returns Element

      const { search, setSearchField } = useSearchForm();

      <LocationInput search={search} setSearchField={setSearchField} placeholder="Start typing a location..." />