Slider
Pick a number in a range, such as a volume or a brightness. Drag the thumb or tap the track, and give it variant="glass" for each platform's own slider.
Installation
Usage
- Drag the thumb to change the value. It keeps where your finger holds it, so it doesn't jump when you pick it up.
- Tap the track to move the thumb there, or drag from beside the thumb to pull it under your finger.
- A drag starts only once your finger moves sideways, so a scroll that starts on the slider scrolls the page and leaves the value alone. A sideways drag doesn't scroll the page.
- A drag taps the phone at either end with
LynxHaptics, and ticks on each step of a slider with 20 steps or fewer. A tap on the track gives none. - The slider fills the width it's given.
Range and steps
- The value goes from
mintomax(0 to 100 by default) in wholesteps (1 by default). - A bound value outside the range or between steps shows at the nearest step. The slider only writes back values it sets itself.
Glass
Each platform's own slider:
On iOS 26 the thumb turns into a Liquid Glass lens while you drag it, magnifying the track under it, and turns solid again when you let go. It's the one place glass sits on content: Apple keeps glass for the layer above content, except on sliders and switches, and only while they're touched.
What each platform draws:
- iOS fills it with the system blue, UISlider's default tint. Its colors follow your app's color scheme, which
provideIconTheme()sets. - Material uses the theme's colors:
primaryfor the filled track, handle and stop dot, andsecondaryfor the rest.
Disabled
A disabled slider dims and ignores touches and screen reader actions.
Listen to changes
valueChange(the[(value)]binding) follows every step of a drag.changedemits the value you settled on: when a drag ends, after a tap, and after a screen reader action. Save or send the value here.
Forms
value is a model(), so the slider works with every Angular forms API:
UiSlider implements Signal Forms' FormValueControl<number>, including min, max and disabled. It emits touch when you finish changing it, so the field counts as touched. Reactive and template-driven forms bind to its value model directly, as Angular 22 does for any component with one. See Forms.
API
UiSlider
Accessibility
- A screen reader reads it as an adjustable element with its
accessibility-labeland its value, a percentage unless you passvalueText. Android's reads it as a slider. - Its Increase and Decrease actions move it by a tenth of the range, or one step when there are fewer than ten. VoiceOver lists them in its Actions rotor, and TalkBack in its actions menu.
- Reduce Motion: the thumb jumps to a tapped value instead of gliding, and turns to glass and back without growing.
- Reduce Transparency: iOS makes its own lens opaque. On Android and the web, the solid thumb grows instead of turning to glass.
VoiceOver adjusts an adjustable element with a swipe up or down, which calls the view's accessibilityIncrement. Lynx's iOS views don't implement it, so that swipe does nothing: choose Increase or Decrease from the Actions rotor instead.
