Skip to content

Slider

Forms

A range slider with a filled track, draggable thumb, and optional value/label display.

atlas-slider

Examples

Basic

Shows the value by default; add showMinMax for the range ends and a suffix for the unit.

Volume40%
Budget1500 €
05000

Suffix, bounds and step

suffix is shown after the value and read by screen readers ( aria-valuetext , "40%"); showMinMax prints the bounds under the track.

Discount40%
060

In a form field

Inside atlas-form-field the field label names the slider and the hint describes it; hide the slider's own label and value with [showValue]="false" when the field already shows them.

Currently 6 of 10.

API

Generated from the library source, so it always matches the code.

AtlasSliderComponent atlas-slider

InputTypeDefaultDescription
value two-waynumber0 Current value (two-way bindable)
min number | undefinedundefined Minimum value
max number | undefinedundefined Maximum value
step number1 Step increment
disabled booleanfalse Whether the slider is disabled
errors readonly ValidationError.WithOptionalFieldTree[][] Validation errors of the bound field. Set by Signal Forms [field] .
required booleanfalse Whether a value is required. Set by Signal Forms [field] .
invalid booleanfalse Whether the field is invalid. Set by Signal Forms [field] .
touched booleanfalse Whether the user has interacted with the field. Set by Signal Forms [field] .
readonly booleanfalse Whether the field is read-only. Set by Signal Forms [field] .
pending booleanfalse Whether async validation is running. Set by Signal Forms [field] .
name string'' Name of the field. Set by Signal Forms [field] .
label string'' Optional label displayed above the slider
showValue booleantrue Show current value display
showMinMax booleanfalse Show min/max labels below the track
suffix string'' Value suffix (e.g. '%', 'px', '°C')
ariaLabel string | nullnull Accessible name when no visible label names the control (use one or the other, WCAG 2.5.3).
inputId string | undefinedundefinedid of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one.
ariaDescribedBy string | nullnull Extra ids for aria-describedby , merged with the surrounding form field's hint or error.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
OutputPayloadDescription
touchvoid Emits when the control loses focus, so Signal Forms marks the field touched.