Invisible Docs
GalerieTokens

Varianten-Picker — component.variant-picker

Produktvarianten wählen: Farb-Swatches (ui.swatch) + Größen-Pills mit Verfügbarkeit — Controller pflegt die Auswahl und emittet variante

Componentv1.0.1Commerceweb.documentweb.applicationbuilder.preview

Beispiele

Farb-Swatches + Größen-Pills mit ausverkaufter Größe (klicken wechselt die Auswahl)

Farbe: Schwarz
GrößeGrößentabelle

Eigenschaften

PropTypDefault
colorLabelstring"Farbe"
colorsarray[]
sizesLabelstring"Größe"
sizesarray[]
sizeChartLabelstring""
sizeChartUrlstring""

Events & Slots

Events: variant

Stellschrauben (Komponenten-Tokens)

TokenDefault
--variant-picker-border-strongvar(--color-border-strong)
--variant-picker-radius-controlvar(--radius-control)
--variant-picker-surface-defaultvar(--color-surface-default)
--variant-picker-surface-sunkenvar(--color-surface-sunken)
--variant-picker-text-defaultvar(--color-text-default)
--variant-picker-text-disabledvar(--color-text-disabled)
--variant-picker-text-mutedvar(--color-text-muted)

Genutzte Design-Tokens

border.hairline color.border.strong color.surface.default color.surface.sunken color.text.default color.text.disabled color.text.muted font.family.default radius.control size.12 size.2 size.4 text.md text.sm weight.semibold