useSlider API
API reference docs for the useSlider hook. Learn about the input parameters and other APIs of this exported module.
Demos
For examples and details on the usage of this React hook, visit the demo pages:
Import
import useSlider from '@mui/base/useSlider';
Parameters
Name | Type | Default | Description |
---|
ref* | React.Ref<any> | | |
aria-labelledby | string | | |
defaultValue | number | number[] | | |
disabled | boolean | | |
disableSwap | boolean | | |
isRtl | boolean | | |
marks | boolean | Mark[] | | |
max | number | | |
min | number | | |
name | string | | |
onChange | (event: Event, value: number | number[], activeThumb: number) => void | | |
onChangeCommitted | (event: React.SyntheticEvent | Event, value: number | number[]) => void | | |
orientation | 'horizontal' | 'vertical' | | |
scale | (value: number) => number | | |
step | number | null | | |
tabIndex | number | | |
value | number | number[] | | |
Return value
Name | Type | Default | Description |
---|