Slider API
API documentation for Slider component
SliderRoot#
Props#
Defines valid properties in Slider component.
State#
Defines valid state in Slider component.
| name | type | default | description |
|---|---|---|---|
| value | number | number[] | null | Value of the component. |
| isDragging | boolean | null | Whether the slider is being dragged. |
Exposes#
Defines the methods and properties exposed by Slider component.
Events#
SliderRootChangeEvent
Event fired when the Slider's value changes.
| name | type | description |
|---|---|---|
| value | number | number[] | The pressed state of the ToggleButton. |
| originalEvent | SyntheticEvent | The original event that triggered the change. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Slider component.
Types#
Instance
Instance of Slider component.
| values |
|---|
| ComponentInstance<SliderRootProps, SliderRootState, SliderRootExposes> |
SliderRange#
Props#
Defines valid properties in SliderRange component.
Exposes#
Defines the methods and properties exposed by SliderRange component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SliderRange component.
| name | type | default | description |
|---|---|---|---|
| root | SliderRangePassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SliderRange component.
| values |
|---|
| ComponentInstance<SliderRangeProps, SliderRangeState, SliderRangeExposes> |
SliderThumb#
Props#
Defines valid properties in SliderThumb component.
Exposes#
Defines the methods and properties exposed by SliderThumb component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SliderThumb component.
| name | type | default | description |
|---|---|---|---|
| root | SliderThumbPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SliderThumb component.
| values |
|---|
| ComponentInstance<SliderThumbProps, SliderThumbState, SliderThumbExposes> |
useSlider#
Props#
Defines valid properties in useSlider.
State#
Defines valid state in useSlider.
| name | type | default | description |
|---|---|---|---|
| value | number | number[] | null | Value of the component. |
| isDragging | boolean | null | Whether the slider is being dragged. |
Exposes#
Defines the methods and properties exposed by useSlider.
Events#
useSliderChangeEvent
Event fired when the Slider's value changes.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the change. |
| value | number | number[] | The pressed state of the ToggleButton. |
Types#
Instance
Instance of useSlider headless.
| values |
|---|
| HeadlessInstance<useSliderProps, useSliderState, useSliderExposes> |