search-suggestions

Search Suggestions

Storefront search with products, categories and brands while the shopper types, and suggested searches and curated picks before; inline under the field or in an overlay.

Parts

PartFileDoes
SearchSuggestionsSearchSuggestions.vueA storefront search: products, categories and brands while the shopper types, suggestions and curated picks before.

Styling

All of Search Suggestions’s styles live in search-suggestions.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue
@vueuse/core

Built from

API reference

SearchSuggestions.vue

A storefront search: products, categories and brands while the shopper types, suggestions and curated picks before. Renders a <div>.

Props 22

PropTypeDefault
resultsSearchResult | null
loadingbooleanfalse
suggestionsSearchSuggestion[][]
collectionsSearchCollection[][]
highlightstring | string[]
presentation'inline' | 'overlay''inline'
searchHref((query: string) => string)
shortcutbooleanfalse
placeholderstring'Search'
searchLabelstring'Search'
productsLabelstring'Products'
categoriesLabelstring'Categories'
brandsLabelstring'Brands'
popularLabelstring'Popular searches'
noResultsLabel((query: string) => string)`No results for '${query}'. Try one of these:`
seeAllLabel((total: number) => string)`See all ${total} results`
resultsAnnouncement((count: number) => string)count === 1 ? '1 result' : `${count} results`
cancelLabelstring'Cancel'
localestring
classClassValue—
querystring''
openbooleanfalse

Events 4

EventPayload
update:openvalue: boolean
selecthref: string
submitquery: string
update:queryvalue: string

Recipe search-suggestions-image 1 group

Recipe search-suggestions-pick 1 group

Recipe line-title 1 group

Recipe meta 1 group

Search Suggestions