Produkt-Karte — component.product-card
Der Grundstein aller Shop-Grids: Bild (oder Platzhalter), Sale-Badge, Wunsch-Herz, Titel, ui.price + ui.rating — komponiert aus den Shop-Elementen. 1.2.0: Slot badges (Abzeichen auf dem Bild). 1.3.0: feste Texte mehrsprachig (invisible_i18n).
Componentv1.3.1Commerceweb.documentweb.applicationbuilder.preview
Beispiele
Sale-Artikel mit Badge, Wunsch-Herz, Preis und Bewertung
Normalpreis ohne Bewertung
Satin-Kimono mit Gürtel14,99 €
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
title * | string | — |
productId | string | "" |
href | string | "#" |
imageUrl | string | "" |
amount * | string | — |
originalAmount | string | "" |
discount | string | "" |
value | number | 0 |
count | number | 0 |
wishlist | boolean | true |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: wishlist
Slot badges: akzeptiert ui.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--product-card-elevation-control | var(--elevation-control) |
--product-card-radius-full | var(--radius-full) |
--product-card-radius-sm | var(--radius-sm) |
--product-card-radius-surface | var(--radius-surface) |
--product-card-sale | var(--color-sale) |
--product-card-surface-default | var(--color-surface-default) |
--product-card-surface-page | var(--color-surface-page) |
--product-card-surface-sunken | var(--color-surface-sunken) |
--product-card-text-default | var(--color-text-default) |
Genutzte Design-Tokens
color.sale color.surface.default color.surface.page color.surface.sunken color.text.default duration.fast easing.standard elevation.control font.family.default leading.base radius.full radius.sm radius.surface size.05 size.1 size.2 size.8 text.md text.xs weight.semibold