Skip to content
vviinn DocsDocs Beta

AI Suggestions (vviinn-suggestions)

Generated from vviinn-widgets 2.228.0, the latest release when these docs were built. If you pin an older version, some of these may not be in it yet — check the Changelog.

Set them as HTML attributes.

api-path

Type: string

currency-sign

Type: string

locale

Type: "de-DE" | "en-US"

price-prefix

Type: string

show-in-widget

Type: boolean · Default: false

token

Type: string

Listen with document.addEventListener(). The pages under Events describe the data each event carries.

EventDescription
vviinnFiltersChanged—
vviinnFilterTriggered—

Replace texts and icons with your own content: Replace Widget Content.

SlotDescription
vviinn-suggestions-iconCustom icon to replace default sparkle emoji.
vviinn-suggestions-titleCustom title text to replace default "AI Suggestions".

Style these elements with vviinn-suggestions::part(name): Styling Specific Elements.

PartDescription
suggestion-filter-buttonToggle button for filter suggestions.
suggestion-info-textInformational markdown text block (e.g. barcode scan result, search explanation).
suggestion-itemIndividual suggestion item.
suggestion-linkClickable suggestion text/link.
suggestions-containerThe main suggestions container element.
suggestions-headerThe header section containing icon and title.
suggestions-iconThe sparkle icon wrapper.
suggestions-listThe list container for all suggestions.
suggestions-titleThe title text element.
suggestions-wrapperThe wrapper around the suggestions list.