Theme: ← Übersicht Tokens

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).

Components v1.3.0 Commerce WebsiteAppDesktop component.sticky-buy-bar

Nutzt: ui.price

Beispiele

Fixierte Kaufleiste (im Live-Einsatz erst nach dem ersten Scroll-Viewport sichtbar)
EmpressEnvy 4-teiliges Dessous-Set9,49 €24,99 €

Eigenschaften

PropTypDefaultBuilder-Label
title *string—Titel
amount *string—Preis
originalAmountstring""Streichpreis
ctaLabelstring"In den Warenkorb"CTA
hrefstring""CTA-Link (leer = Warenkorb-Ereignis)
placementstring: fixed | sticky"fixed"Platzierung
showstring: scroll | always"scroll"Sichtbar
watchstring""Erscheint, wenn dieses Element aus dem Blick ist
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | full"standard"Breite
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""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.

TokenDefault
--sticky-buy-bar-action-on-primaryvar(--color-action-on-primary)
--sticky-buy-bar-action-primaryvar(--color-action-primary)
--sticky-buy-bar-action-primary-hovervar(--color-action-primary-hover)
--sticky-buy-bar-border-defaultvar(--color-border-default)
--sticky-buy-bar-elevation-overlayvar(--elevation-overlay)
--sticky-buy-bar-radius-controlvar(--radius-control)
--sticky-buy-bar-surface-overlayvar(--color-surface-overlay)
--sticky-buy-bar-text-defaultvar(--color-text-default)

Genutzte Design-Tokens

border.hairlinecolor.action.on-primarycolor.action.primarycolor.action.primary-hovercolor.border.defaultcolor.surface.overlaycolor.text.defaultduration.baseduration.fasteasing.standardelevation.overlayfocus.ring-colorfocus.ring-offsetfocus.ring-widthfont.family.defaultlayer.toastlayout.containerradius.controlradius.fullradius.lgsize.2size.3size.4size.5size.6size.8text.mdtext.smweight.semibold

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 * = Produkttitel
  • amount * = Preis
  • originalAmount = Streichpreis
  • ctaLabel = 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 cart beim CTA-Klick; nutzt ui.price für die Preisdarstellung.