2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

Slider

Updated: December 23, 2025
View on GitHub
The Slider component provides an intuitive way to select a value from a range using a draggable thumb along a track. Add a descriptive label to the slider using the label prop. Display the current value alongside the label using showValue. Control the granularity of value changes with the step prop. Define custom minimum and maximum values for your use case. Disable the slider to prevent user interaction.
Prop
Type
Default
valuerequired
Current value
number
onChangerequired
Callback when value changes
(value: number) => void
min
number0
max
number100
step
number1
label
Optional label text
string
showValue
booleanfalse
disabled
booleanfalse
className
string
style
React.CSSProperties
…and every React.InputHTMLAttributes propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club