Gathering detailed insights and metrics for react-bootstrap-range-slider
Gathering detailed insights and metrics for react-bootstrap-range-slider
Gathering detailed insights and metrics for react-bootstrap-range-slider
Gathering detailed insights and metrics for react-bootstrap-range-slider
@types/react-bootstrap-range-slider
Stub TypeScript definitions entry for react-bootstrap-range-slider, which provides its own types definitions
@mdbootstrap/react-slider
Responsive React Sliders built with Bootstrap 5. Range slider bar with label or a carousel image slider? No matter what you are looking for, we've got you covered.
@mdbootstrap/react-labels
Responsive React Labels built with Bootstrap 5. Badge Labels are for counters, categories & tags. Floating labels refer to forms, and slider labels to the range.
A range slider with tooltips for React Bootstrap (Bootstrap 4) that extends the HTML input element.
npm install react-bootstrap-range-slider
Typescript
Module System
Node Version
NPM Version
JavaScript (47.46%)
SCSS (29.32%)
TypeScript (23.22%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
52 Stars
70 Commits
8 Forks
1 Watchers
4 Branches
2 Contributors
Updated on Sep 30, 2024
Latest Version
3.0.8
Package Id
react-bootstrap-range-slider@3.0.8
Unpacked Size
63.57 kB
Size
15.13 kB
File Count
8
NPM Version
8.8.0
Node Version
18.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
3
24
A range slider with tooltips for React Bootstrap v1.0.0+ / Bootstrap 4 that extends the HTML <input type="range">
element.
Check out the Examples Page for live demos of all main slider features.
yarn add react-bootstrap-range-slider
or
npm install react-bootstrap-range-slider
React Bootstrap must be installed and the Bootstrap CSS imported (or included).
In your index.js
or similar:
1import 'bootstrap/dist/css/bootstrap.css'; // or include from a CDN 2import 'react-bootstrap-range-slider/dist/react-bootstrap-range-slider.css';
Your component:
1import React, { useState } from 'react'; 2import RangeSlider from 'react-bootstrap-range-slider'; 3 4const MyComponent = () => { 5 6 const [ value, setValue ] = useState(0); 7 8 return ( 9 <RangeSlider 10 value={value} 11 onChange={changeEvent => setValue(changeEvent.target.value)} 12 /> 13 ); 14 15};
<input type="range">
element;sm
) and large (lg
) sizes are supported;Property | Type | Default | Description |
---|---|---|---|
value | number | The current value of the slider. | |
onChange | function | A callback fired when the range slider's value changes. The callback's first argument is a React.ChangeEvent . The second argument is the slider's new value as a number . | |
onAfterChange | function | A callback fired after interaction with the slider has finished if the value has changed. The callback function's signature is the same as for onChange . | |
min | number | 0 | The minimum value of the slider. |
max | number | 100 | The maximum value of the slider. |
step | number | 1 | The granularity with which the slider can step through values. |
disabled | boolean | false | Disables the slider. |
size | 'sm' | 'lg' | Input size variants, for compatibility with other Bootstrap form components. | |
variant | string | 'primary' | Color variant, equivalent to the Bootstrap Button color variant. One of: 'primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'dark' , 'light' |
tooltip | 'auto' | 'on' | 'off' | 'auto' | If 'auto' the tooltip will be visible only when hovered. If 'on' the tooltip will always be visible. If 'off' no tooltip will be displayed. |
tooltipPlacement | 'top' | 'bottom' | 'bottom' | Placement of tooltip relative to slider thumb. |
tooltipLabel | function | A function that returns the tooltip's content (either a string or element). The function's first argument is the current slider value. | |
tooltipStyle | object | Style to be applied to tooltip div. | |
tooltipProps | object | Properties applied to the tooltip's <div> element. | |
inputProps | object | Properties applied to the <input> element. DEPRECATED: additional props added to the RangeSlider component's props will be passed to the underlying <input> element. | |
ref | React.Ref<HTMLInputElement> | If provided, ref will be forwarded to the underlying <input> element. | |
bsPrefix | string | 'range-slider' | Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css. |
If you have set custom theme colors using $theme-colors
as described in the React Bootstrap documentation and would like them to apply to the range slider, include the React Bootstrap Range Slider's Sass/SCSS like so:
1/* The following block can be included in a custom.scss */ 2 3/* make the customizations */ 4$theme-colors: ( 5 "info": tomato, 6 "danger": teal 7); 8 9@import "react-bootstrap-range-slider/dist/react-bootstrap-range-slider.scss"; 10 11/* import bootstrap to set changes */ 12@import "~bootstrap/scss/bootstrap";
React Bootstrap Range Slider works in most modern web browsers and in Internet Explorer 10+ (with polyfills required for React to work).
Browser | Supported |
---|---|
Chrome | Yes |
Edge | Yes |
Firefox | Yes |
Internet Explorer | 10, 11 |
Opera | Yes |
Safari | Yes |
Samsung Internet | Yes |
UC | Yes |
Yandex | Yes |
Copyright (c) 2020 Jason Wilson
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/25 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More