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.

States: Default

Parts

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

Styling

PartRecipe
SearchSuggestionssearch-suggestions-image
SearchSuggestionssearch-suggestions-pick
SearchSuggestionsline-title
SearchSuggestionsmeta

Install

Writes 3 files into components/sections/search-suggestions/. For agents, npx @frontic/ui docs search-suggestions prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue
@vueuse/core

Built from

API reference

SearchSuggestions SearchSuggestions.vue

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

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
EventPayload
update:openvalue: boolean
selecthref: string
submitquery: string
update:queryvalue: string
Recipe search-suggestions-imageSets
base: search-suggestions-image 4 properties · 3 inherited
Recipe search-suggestions-pickSets
base: search-suggestions-pick 2 properties
Recipe line-titleSets
base: line-title 2 properties
Recipe metaSets
base: meta 3 properties
Example