Schieberegler (Slider) — ui.slider
Nativer Range-Slider mit Token-Styling und Live-Wertanzeige — funktioniert ohne JS, Controller aktualisiert Anzeige und emittet change; 1.1.0 opt-in name/ticks; 1.2.0 opt-in tickStep (Markierungen unabhaengig vom Schritt) und input (Wert eintippbar); 1.3.0 opt-in exactInput (gesendet wird das Textfe
UI Elementv1.5.1Formulareweb.documentweb.applicationdesktop.shellbuilder.preview
Beispiele
Mit Label und Live-Wert
Feine Schritte (0–1)
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
label | string | "" |
value | number | 50 |
min | number | 0 |
max | number | 100 |
step | number | 1 |
unit | string | "" |
name | string | "" |
ticks | boolean | false |
tickStep | number | 0 |
input | boolean | false |
exactInput | 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 |
|---|---|
--slider-percent | 50% |
Genutzte Design-Tokens
border.hairline color.action.primary color.border.default color.border.strong color.surface.default color.surface.sunken color.text.default color.text.muted elevation.control focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.control radius.full size.1 size.10 size.2 size.5 text.sm text.xs weight.medium weight.semibold