React Range Slider Component API
Range Slider API
Limited offer ends 1st January 2025, use code 2024XMAS25 during checkout.
Explore the API reference for the React Range Slider component and discover how to effectively utilize its props for customization.
CRangeSlider#
import { CRangeSlider } from '@coreui/react-pro'// orimport CRangeSlider from '@coreui/react-pro/src/components/range-slider/CRangeSlider'
Property | Default | Type |
---|---|---|
className# | - | string |
Customize the styling of your React Range Slider by adding a custom | ||
clickableLabels# | true | boolean |
Enable or disable clickable labels in the React Range Slider. | ||
disabled# | false | boolean |
Control the interactive state of the React Range Slider with the | ||
distance# | 0 | number |
Define the minimum distance between slider handles using the | ||
labels# | - | Label[] |
Add descriptive labels to your React Range Slider by providing an array of | ||
max# | 100 | number |
Specify the maximum value for the React Range Slider with the | ||
min# | 0 | number |
Set the minimum value for the React Range Slider using the | ||
name# | - | string , string[] |
Assign a | ||
onChange# | - | (value: number[]) => void |
Handle value changes in the React Range Slider by utilizing the | ||
step# | 1 | number |
Control the granularity of the React Range Slider by setting the | ||
tooltips# | true | boolean |
Toggle the visibility of tooltips in the React Range Slider with the | ||
tooltipsFormat# | - | (value: number) => ReactNode |
Customize the display format of tooltips in the React Range Slider using the | ||
track# | fill | boolean , 'fill' |
Controls the visual representation of the slider's track. When set to | ||
value# | [] | number , number[] |
Set the current value(s) of the React Range Slider using the | ||
vertical# | false | boolean |
Orient the React Range Slider vertically by setting the |