Theme: ← Übersicht Tokens

Produkt-Galerie

Thumbnail-Spalte + Hauptbild — Controller wechselt das Hauptbild beim Thumbnail-Klick; ohne Bilder rendern Platzhalter-Flächen 1.3: feste Texte mehrsprachig (invisible_i18n).

Components v1.3.1 Commerce WebsiteApp component.product-gallery

Nutzt: ui.icon

Beispiele

Ohne Bilder: Platzhalter-Flächen (Thumbnail-Klick wechselt die Auswahl)

Eigenschaften

PropTypDefaultBuilder-Label
imagesarray[]Bilder (leer = 4 Platzhalter-Flächen)
sourcestring: props | slots"props"Bildquelle (Liste oder Slots)
navigationbooleanfalsePfeile und Bildzähler am Hauptbild
placeholdernumber4Anzahl Platzhalter ohne Bilder
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | full"standard"Breite
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""Anker-ID (Sprungziel, z. B. fuer Nav-Links)

* Pflicht-Prop

Events & Slots

Events: ⚡ change — im Surface per on: {<event>: {action, params}} verdrahtbar.

Slot main: akzeptiert ui.*, component.*

Slot thumbs: akzeptiert ui.*, component.*, layout.*

Stellschrauben (Komponenten-Tokens)

Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.

TokenDefault
--product-gallery-border-defaultvar(--color-border-default)
--product-gallery-radius-controlvar(--radius-control)
--product-gallery-radius-surfacevar(--radius-surface)
--product-gallery-surface-sunkenvar(--color-surface-sunken)
--product-gallery-text-defaultvar(--color-text-default)

Genutzte Design-Tokens

border.hairlinecolor.action.primarycolor.border.defaultcolor.border.subtlecolor.surface.defaultcolor.surface.sunkencolor.text.defaultduration.fasteasing.standardelevation.overlayfocus.ring-colorfocus.ring-widthradius.controlradius.surfacesize.16size.3text.xsweight.semibold

LLM-Notizen

component.product-gallery

Thumbnail-Spalte plus Hauptbild — Klick auf ein Thumbnail wechselt das Hauptbild.

Wann nutzen

  • Produkt-Bildergalerie auf einer Detailseite.
  • Ohne Bilder rendern Platzhalter-Flächen (für Layout/Preview).

Wichtige Props

  • images = Array aus {url*, alt} (leer = Platzhalter-Flächen)
  • placeholder = Anzahl Platzhalter ohne Bilder (Default 4, 1–8)

Beispiel-Node

{ "definition": "component.product-gallery", "props": { "images": [ { "url": "/img/1.jpg", "alt": "Vorderseite" }, { "url": "/img/2.jpg", "alt": "Rückseite" } ] } }

Hinweise

  • Feuert change beim Thumbnail-Wechsel.