Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 977 Bytes

search-ui-react.searchbar.md

File metadata and controls

24 lines (14 loc) · 977 Bytes

Home > @yext/search-ui-react > SearchBar

SearchBar() function

Renders a SearchBar that is hooked up with an InputDropdown component.

Signature:

export declare function SearchBar({ placeholder, geolocationOptions, hideRecentSearches, visualAutocompleteConfig, showVerticalLinks, onSelectVerticalLink, verticalKeyToLabel, recentSearchesLimit, customCssClasses, onSearch }: SearchBarProps): JSX.Element;

Parameters

Parameter Type Description
{ placeholder, geolocationOptions, hideRecentSearches, visualAutocompleteConfig, showVerticalLinks, onSelectVerticalLink, verticalKeyToLabel, recentSearchesLimit, customCssClasses, onSearch } SearchBarProps

Returns:

JSX.Element