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 dataquery string - The query that the suggestion belongs tofilter Filter \ |
Events
A list of events that the component will emit:
UserSelectedAPopularSearch
(opens new window): the event is emitted after the user clicks the button. The event payload is the popular search data.
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.