Renders a next query item which receives the suggestion that will be rendered as a prop. It exposes a default slot to change the next query content. If the slot is not overridden, it will render the suggestion query by default.
|The suggestion to render and use in the default slot.
|Indicates if the curated next query should be highlighted.
(name - type - description)
|Next Query content
boolean - True if the curated NQ should be highlighted
BaseSuggestion default slot scope: suggestion
Suggestion - Suggestion data
string - The query that the suggestion belongs to
NextQuery uses the following dynamic CSS classes so you can style it when is:
A list of events that the component will emit:
UserSelectedANextQuery(opens new window): the event is emitted after the user clicks the button. The event payload is the next query data.
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 next query. It also has an optional
highlightCurated, to indicate if the curated Next Queries should be differentiated with a
Using default slot:
Overriding default slot.
The default slot allows you to replace the content of the suggestion button.