Simal UI
Components

Slider

WEB APPROXIMATION — Slider wraps @react-native-community/slider, which is a native view on iOS and Android.

What renders here is react-native-web's fallback: the geometry and the tint colours are indicative, the thumb and the drag feel are not. Verify on a simulator.

Import

import { Slider } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
valueCurrent position. Controlled — hold it in state and update from onValueChange, or the thumb springs back.
minimumValueLower bound. Defaults to 0.
maximumValueUpper bound. Defaults to 1, which is why an unconfigured slider works in fractions.
stepSnap increment. 0 (the default) slides continuously.
onValueChangeFires continuously while dragging, not just on release. Debounce it before doing real work.
disabledbooleanfalseBlocks dragging and dims the track.

Examples

Interactive

Stepped

Disabled

On this page