Skip to content
vviinn DocsDocs Beta

Replace Widget Content

Want to change “Add to Basket” to “Add to Cart”? Use your own icons? Slots let you replace default text and content with your own HTML.

Add your content with the slot attribute to place it inside the widget. Learn more about Slots.

The width: 0; height: 0 in the examples keeps percent-sized slot content, such as an icon with width="100%", from adding a horizontal scrollbar.

Each component’s page in the Component Reference lists all of its slots, e.g. Search Modal.

Here are slots that can be used for the Discovery Slider, Discovery Set and One-Click Discovery widgets.

  • vviinn-recommendations-subtitle — Recommendations subtitle text.
  • vviinn-recommendations-title — Recommendations title text.
  • vviinn-update-button-text — Text of Update Button on the top (Set mode).

Plus the Product Card slots, except vviinn-product-card-actions.

Custom Title Add to Cart

In addition to Discovery Slider slots, the icon of the One-Click Discovery button can be changed.

Custom Title Add to Cart

The same slots as Discovery Slider; the ones marked Set mode apply to Discovery Set only.

Custom Title Custom Subtitle Add to Cart Custom Update Pressed

In addition to Discovery Set slots, the icon of the One-Click Discovery button can also be changed.

Custom Title Custom Subtitle Add to Cart Custom Update IC Button Pressed IP I

Slots that can be used for the Search Modal widget.

The default (unnamed) slot replaces the search button icon. It can contain any HTML content, including text, SVG icons or other elements.

  • vviinn-camera-button-text-start — Title of Start Camera button.
  • vviinn-camera-button-text-stop — Title of Stop Camera button (for Desktop).
  • vviinn-camera-icon — Icon of Camera Button.
  • vviinn-drag-drop-icon — Icon of the drag & drop zone.
  • vviinn-drag-drop-text — Hint text of the drag & drop zone.
  • vviinn-image-search-modal-title — Image search modal title.
  • vviinn-image-upload-button-text — Title of Upload Button.
  • vviinn-image-upload-icon — Icon of Upload Button.
  • vviinn-privacy-badge-text — Text content of privacy notification block.
  • vviinn-results-vpr-icon — One-Click Discovery icon
  • vviinn-suggestions-icon — Custom icon to replace default sparkle emoji.
  • vviinn-suggestions-title — Custom title text to replace default "AI Suggestions".
  • vviinn-teaser-text — Text on the widget's main screen.
  • vviinn-text-search-icon — Icon of the text search block.

Plus the Product Card slots, except vviinn-image-placeholder-icon, vviinn-product-card-actions, vviinn-update-button-icon.

Custom Text Custom Button Text

Example showing how to use text content in the default (unnamed) slot to create a text button instead of an icon button.

Search Now

Slots that can be used for the Extended Filters component.

  • vviinn-extended-filters-apply — Title of Apply Button.
  • vviinn-extended-filters-no-filters — Message shown when no filters are available.
  • vviinn-extended-filters-reset — Title of Reset Button.
  • vviinn-extended-filters-title — Text on widget's header.
  • vviinn-filters-search-icon — Custom icon for the search input.
  • vviinn-range-filter-from-label — Label text for the "From" input field in range filters.
  • vviinn-range-filter-to-label — Label text for the "To" input field in range filters.
Custom Title Custom Apply Custom Reset

Slots that can be used for the Product List component.

vviinn-results-vpr-icon applies when one-click-discovery-mode is set to modal, append-grid or append-slider in the Product List component.

  • vviinn-results-vpr-icon — One-Click Discovery icon.

Plus the Product Card slots, except vviinn-energy-label-data-sheet-text, vviinn-product-card-actions, vviinn-update-button-icon.

Slots of the Product Card. They work on a standalone card and inside the widgets that show product cards; each widget’s section above names the ones it leaves out.

  • vviinn-basket-button-icon — Icon of Add to Basket button.
  • vviinn-basket-button-icon-pressed — Icon of pressed Add to Basket button (Set mode).
  • vviinn-basket-button-text — Text of Add to Basket button.
  • vviinn-basket-button-text-pressed — Text of pressed Add to Basket button (Set mode).
  • vviinn-custom-label-0 — Custom label with index 0.
  • vviinn-custom-label-1 — Custom label with index 1.
  • vviinn-custom-label-2 — Custom label with index 2.
  • vviinn-custom-label-3 — Custom label with index 3.
  • vviinn-custom-label-4 — Custom label with index 4.
  • vviinn-energy-label-data-sheet-text — Data sheet link's text.
  • vviinn-favorite-icon — Icon of Favorite button.
  • vviinn-favorite-icon-pressed — Icon of pressed Favorite button.
  • vviinn-image-placeholder-icon — Icon or content for the image placeholder.
  • vviinn-product-card-actions — Add action buttons like One-Click Discovery to this slot.
  • vviinn-update-button-icon — Icon of Update Button (Set mode).