Mengen-Stepper — ui.quantity-stepper
Mengenwahl mit −/+ und Zahleneingabe — progressive (Input funktioniert ohne JS), Controller klemmt auf min/max und emittet change. 1.1.0: name (Formularfeld), label/showLabel, Ziel desktop.shell. 1.2.0: feste Texte mehrsprachig (invisible_i18n).
UI Elementv1.2.1Commerceweb.documentweb.applicationdesktop.shellbuilder.preview
Beispiele
Standard (1–99)
Vorbelegt mit 3, Maximum 5
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
value | number | 1 |
min | number | 1 |
max | number | 99 |
name | string | "" |
label | string | "Menge" |
showLabel | boolean | false |
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 | "" |
Events & Slots
Events: change
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--quantity-stepper-border-default | var(--color-border-default) |
--quantity-stepper-border-strong | var(--color-border-strong) |
--quantity-stepper-radius-control | var(--shape-pill, var(--radius-full)) |
--quantity-stepper-surface-default | var(--color-surface-default) |
--quantity-stepper-surface-sunken | var(--color-surface-sunken) |
--quantity-stepper-text-default | var(--color-text-default) |
--quantity-stepper-text-disabled | var(--color-text-disabled) |
Genutzte Design-Tokens
border.hairline color.border.default color.border.strong color.surface.default color.surface.sunken color.text.default color.text.disabled duration.fast easing.standard focus.ring-color focus.ring-width font.family.default radius.full size.1 size.12 size.8 text.md text.sm weight.medium