Preis — ui.price
Shop-Preiszeile: Betrag (bei Streichpreis automatisch in Sale-Farbe), Streichpreis, Rabatt-Badge — Sale-Ton über den themebaren color.sale-Token
UI Elementv1.0.3Commerceweb.documentweb.applicationbuilder.preview
Beispiele
Sale-Preis mit UVP und Rabatt-Badge
9,49 €Normalpreis
24,99 €Eigenschaften
| Prop | Typ | Default |
|---|---|---|
amount * | string | — |
originalAmount | string | "" |
discount | string | "" |
size | string: md | lg | "lg" |
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 | "" |
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--price-radius-sm | var(--radius-sm) |
--price-sale | var(--color-sale) |
--price-surface-page | var(--color-surface-page) |
--price-text-default | var(--color-text-default) |
--price-text-muted | var(--color-text-muted) |
Genutzte Design-Tokens
color.sale color.surface.page color.text.default color.text.muted font.family.default radius.sm size.05 size.1 text.3xl text.sm text.xl text.xs weight.bold weight.semibold