Produkt-Grid
Responsives Grid aus Produkt-Karten (auto-fill) mit optionalem Sektions-Kopf — für Empfehlungen, Kategorien, Suchergebnisse
Nutzt: component.product-card
Beispiele
Empfehlungen
Das könnte dir auch gefallen
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| kicker | string | "" | Kicker |
| title | string | "" | Titel |
| produkte * | array | — | Produkte (Props der Produkt-Karte) |
| spacing | string: none | sm | md | lg | xl | "none" | Eigenabstand |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert, schlaegt Eigenabstand) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | container | full | "standard" | Breite (full = Band aus dem Container, container = im Container) |
| height | string: standard | half | full | "standard" | Hoehe (full = Bildschirmhoehe, Inhalt zentriert) |
| backgroundImage | string | "" | Hintergrundbild (https-URL oder /pfad; leer = keins) |
| backgroundDim | string: standard | light | medium | strong | "standard" | Bild abdunkeln (Lesbarkeit; standard = aus) |
| backgroundFixed | boolean | false | Bild steht fest beim Scrollen (Parallax) |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
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.
| Token | Default |
|---|---|
--grid-gap | var(--size-6) |
--grid-min | var(--size-40) |
Genutzte Design-Tokens
LLM-Notizen
section.product-grid
Responsives auto-fill-Grid aus Produkt-Karten mit optionalem Sektions-Kopf — für Empfehlungen, Kategorien oder Suchergebnisse.
Wann nutzen
- Mehrere Produkte als Kartenliste (Katalog, Empfehlungen, Suchergebnisse).
- Für den Kopf einer einzelnen Produktdetailseite eher
section.product-stage.
Wichtige Props
produkte* = Array aus Produkt-Karten-Props:{title*, amount*, href?, imageUrl?, originalAmount?, discount?, value?, count?}(value = Bewertung 0–5)kicker= Mono-Label über dem Titeltitle= Sektionstitelspacing= Eigenabstandnone|sm|md|lg|xl(Defaultnone)
Beispiel-Node
{ "definition": "section.product-grid", "props": { "kicker": "NEU", "title": "Empfehlungen", "produkte": [{ "title": "Sneaker X", "amount": "89 €", "originalAmount": "119 €", "discount": "-25%", "href": "/p/x", "imageUrl": "/p/x.jpg", "value": 4.5, "count": 210 }] } }
Hinweise
- Rendert je Eintrag eine
component.product-card; die Einträge sind deren Props.