Skip to content
  • Android
  • iOS
  • Web

Slider

A Slider component is a UI element that allows users to select a value from a range by sliding a handle along a track. It provides an interactive way to adjust settings, such as volume, brightness, or other continuous values, with smooth transitions. Sliders can be single or multi-valued, enabling users to make precise selections visually, enhancing the overall user experience.

Live examples

Example.tsx

Attributes

NSlider attributes
NameTypeDefaultDetails
labelstringOptional
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
idstringOptional
valuenumberOptional
defaultValuenumberOptional
minstring | numberOptional
maxstring | numberOptional
stepnumberOptional
disabledbooleanOptional
orientation"horizontal" | "vertical"Optional
onChange((value: number) => void)Optional
showOutputbooleanOptional
accessibilityLabelstringOptional
Engine reference for SliderSet up engine components

Tags