1 min read

PopularSearch

PopularSearch

Renders a popular search item which receives the suggestion that will be rendered as a prop. It exposes a default slot to change the popular search content. If the slot is not overridden, it will render the suggestion query by default.

Props

Name Description Type Default
suggestion The suggestion to render and use in the default slot. Suggestion

Slots

Name Description Bindings
(name - type - description)
default Popular Search content v-bind Object - BaseSuggestion default slot scope: suggestion Suggestion - Suggestion data
query string - The query that the suggestion belongs to
filter Filter \

Events

A list of events that the component will emit:

Examples

This components expects just a suggestion as a prop to be rendered. It has a slot to override the content. By default, it renders the suggestion query of the popular search.

Basic Usage

Custom Usage