Sticky-Kaufleiste
Am unteren Rand fixierte Kaufleiste: Titel + ui.price + Warenkorb-CTA — erscheint erst nach dem ersten Scroll-Viewport (Controller). 1.1.0 (opt-in): href (CTA als Link), placement sticky (klebt im Scrollbereich, z. B. Desktop-Fenster), watch (erscheint, solange z. B. die Kaufbox nicht sichtbar ist).
Nutzt: ui.price
Beispiele
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| title * | string | — | Titel |
| amount * | string | — | Preis |
| originalAmount | string | "" | Streichpreis |
| ctaLabel | string | "In den Warenkorb" | CTA |
| href | string | "" | CTA-Link (leer = Warenkorb-Ereignis) |
| placement | string: fixed | sticky | "fixed" | Platzierung |
| show | string: scroll | always | "scroll" | Sichtbar |
| watch | string | "" | Erscheint, wenn dieses Element aus dem Blick ist |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| 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 | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Events & Slots
Events:
⚡ cart — im Surface per on: {<event>: {action, params}} verdrahtbar.
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 |
|---|---|
--sticky-buy-bar-action-on-primary | var(--color-action-on-primary) |
--sticky-buy-bar-action-primary | var(--color-action-primary) |
--sticky-buy-bar-action-primary-hover | var(--color-action-primary-hover) |
--sticky-buy-bar-border-default | var(--color-border-default) |
--sticky-buy-bar-elevation-overlay | var(--elevation-overlay) |
--sticky-buy-bar-radius-control | var(--radius-control) |
--sticky-buy-bar-surface-overlay | var(--color-surface-overlay) |
--sticky-buy-bar-text-default | var(--color-text-default) |
Genutzte Design-Tokens
LLM-Notizen
component.sticky-buy-bar
Am unteren Rand fixierte Kaufleiste: Titel, Preis und Warenkorb-CTA.
Wann nutzen
- Persistente Kauf-Leiste auf einer Produktseite, erscheint nach dem ersten Scroll-Viewport.
- Nicht als reine Bildergalerie (dafür
component.product-gallery).
Wichtige Props
title* = Produkttitelamount* = PreisoriginalAmount= StreichpreisctaLabel= CTA-Text (Default „In den Warenkorb")
show=scroll* |always(1.3.0):always= von Anfang an sichtbar (Konfigurator).
Beispiel-Node
{ "definition": "component.sticky-buy-bar", "props": { "title": "NEX Hoodie", "amount": "49 €", "originalAmount": "69 €", "ctaLabel": "In den Warenkorb" } }
Hinweise
- Feuert
cartbeim CTA-Klick; nutztui.pricefür die Preisdarstellung.