Skip to content
+

Slider

A slider is a UI element that lets users select a single value or a range of values along a bar.

useSlider API

Import

import { useSlider } from '@mui/base/useSlider';
// or
import { useSlider } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

aria-labelledby

defaultValue

disabled

disableSwap

isRtl

marks

max

min

name

onChange

onChangeCommitted

orientation

rootRef

scale

step

tabIndex

value

Return value

active

axis

axisProps

dragging

focusedThumbIndex

getHiddenInputProps

getRootProps

getThumbProps

getThumbStyle

marks

open

range

rootRef

trackLeap

trackOffset

values