Slider¶
A Slider provides a visual indication of adjustable content, where the user can increase or decrease the value by moving the slider thumb along a horizontal track.
Usage¶

Sliders allow users to view and select a value from the range along a horizontal track. They’re ideal for adjusting settings such as volume and brightness where accuracy is not of highest importance.
The buttons can be used to make small adjustments in either direction, while the slider thumb can be used for larger adjustments.
Changes made with sliders take effect immediately, allowing users to make slider adjustments with direct feedback.
When to use¶
- Use it for making selections from a range of values.
- Use it when the range is more important than precision.
Best practices¶
- Use a regular value input, if a user needs to enter a precise number.
- Sliders shouldn’t be used to adjust settings with any delay in providing user feedback.
Design¶
Elements¶

- +/- Button, 2. Thumb, 3. Thumb icon (Optional), 4. Track, 5. Range values (Optional)
Slider variations¶

Thumb interaction states¶
The thumb can optionally contain an icon.
![]()
Code¶
Usage¶
import { SiSliderComponent } from '@siemens/element-ng/slider';
@Component({
imports: [SiSliderComponent, ...]
})
import { SiSliderComponent } from '@siemens/element-ng/slider'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| decrementLabel ¶ | TranslatableString | $localize`:@@SI_SLIDER.DECREMENT:Decrement` | Text for aria-label of decrement. Needed for a11y. |
| disabled ¶ | boolean | false | |
| errormessageId ¶ | string | `${this.id()}-errormessage` | This ID will be bound to the Implements SiFormItemControl |
| id ¶ | string | `__si-slider-${SiSliderComponent.idCounter++}` | The actual id of the control that should be used in the Implements SiFormItemControl |
| incrementLabel ¶ | TranslatableString | $localize`:@@SI_SLIDER.INCREMENT:Increment` | Text for aria-label of increment. Needed for a11y. |
| labelledby ¶ | string | `${this.id()}-label` | ID that should be assigned to the label element inside the SiFormItemComponent. If the target control is not of type input, select or button, it cannot be referenced by a label. Instead, aria-labelledby must be used to create a reference to a label. In such a case, an implementation of SiFormItemControl must provide the id of the label in labelledby. SiFormItemComponent will apply the id to the label so that it can be used inside the control to reference it in the aria-labelledby attribute. Implements SiFormItemControl |
| max ¶ | number | 100 | Maximum of slider range. |
| maxLabel ¶ | string | '' | Label to describe maximum of slider range. |
| min ¶ | number | 0 | Minimum of slider range. |
| minLabel ¶ | string | '' | Label to describe minimum of slider range. |
| sliderLabel ¶ | TranslatableString | $localize`:@@SI_SLIDER.LABEL:Value` | Text for aria-label of slider. Needed for a11y |
| step ¶ | number | 1 | Interval to step through the slider. |
| thumbIcon ¶ | string | undefined | Icon to use as the slider thumb. | |
| value ¶ | number | undefined | Current value of slider. |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| valueChange ¶ | number | undefined | Current value of slider. |
Types Documentation¶
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.
Common interface for form item controls. Controls that should be connected to SiFormItemComponent must implement this interface and must be provided using the SI_FORM_ITEM_CONTROL token.
-
Generated ID that the SiFormItemComponent will assign to the element containing the error messages. Implementations of SiFormItemControl must generate this ID and assign it to the
aria-describedbyattribute of their focusable elements.errormessageId:
readonlystring | Signal<string>¶ -
The actual id of the control that should be used in the
forattribute of a label.id?:
readonlystring | Signal<string | undefined>¶ - readonly
If the control is meant to be used a checkbox. This affects the label positioning.
-
ID that should be assigned to the label element inside the SiFormItemComponent.
If the target control is not of type input, select or button, it cannot be referenced by a label. Instead, aria-labelledby must be used to create a reference to a label. In such a case, an implementation of SiFormItemControl must provide the id of the label in labelledby. SiFormItemComponent will apply the id to the label so that it can be used inside the control to reference it in the aria-labelledby attribute.
labelledby?:
readonlystring | Signal<string | undefined> | null¶
Except where otherwise noted, content on this site is licensed under MIT License.