Invisible Docs
GalerieTokens

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

Eigenschaften

PropTypDefault
title *string—
productIdstring""
hrefstring"#"
imageUrlstring""
amount *string—
originalAmountstring""
discountstring""
valuenumber0
countnumber0
wishlistbooleantrue
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""

Events & Slots

Events: wishlist

Slot badges: akzeptiert ui.*

Stellschrauben (Komponenten-Tokens)

TokenDefault
--product-card-elevation-controlvar(--elevation-control)
--product-card-radius-fullvar(--radius-full)
--product-card-radius-smvar(--radius-sm)
--product-card-radius-surfacevar(--radius-surface)
--product-card-salevar(--color-sale)
--product-card-surface-defaultvar(--color-surface-default)
--product-card-surface-pagevar(--color-surface-page)
--product-card-surface-sunkenvar(--color-surface-sunken)
--product-card-text-defaultvar(--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