🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

audiolux-multi-range-slider

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audiolux-multi-range-slider

Simple component to select range values from slider. React component that return two value minValue and maxValue by event onInput/onChange. A custom fork of multi-range-slider-react

1.1.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

audiolux-multi-range-slider

A customizable react component for controlling the hue range for the AudioLux project. Forked from multi-range-slider-react by Govind Prasad Gupta.

AudioLux slider demo

A list of properties to control the component

proptypedefaultdescription
idString''Sets id for multi-range-slider control root div
minNumber0Slider range minimum value
maxNumber100Slider range maximum value
minValueNumber25Slider range selected minimum thumb value
maxValueNumber75Slider range selected maximum thumb value
stepNumber5Slider change value when slider bar clicked or keyboard arrow key pressed
stepOnlyBooleanfalseSpecify user to select only values in step range only
canMinMaxValueSameBooleanfalseSpecify if minValue and maxValue can be the same
preventWheelBooleanfalseSpecify if mouse wheel can change slider values. If false then (shift+mwheel) change minValue (ctrl+mwheel) change maxValue, (ctrl+shift+wheel) change both values
disabledBooleanfalseSpecify if user can change slider values with mouse/keyboard. If false, can only change by updating props/state values
rulerBooleantrueSpecify if ruler is visible or not
labelBooleantrueSpecify if ruler labels are visible or not
labelsString ArraySpecify ruler step label values
minCaptionStringCaption on min thumb when sliding - can set on onChange/onInput event
maxCaptionStringCaption on max thumb when sliding - can set on onChange/onInput event
subStepsBooleanfalseSpecify if small step lines are visible or not
baseClassNameStringmulti-range-sliderComponent class name to change CSS style
classNameString''Add additional class with baseClassName to div.multi-range-slider
styleReact.CSSPropertiesSpecify/override additional style on div.multi-range-slider
barLeftColorString-ColorSpecify slider left part background color
barRightColorString-ColorSpecify slider right part background color
barInnerColorString-ColorSpecify slider inner part background color
thumbLeftColorString-ColorSpecify slider left thumb background color
thumbRightColorString-ColorSpecify slider right thumb background color
refReact.useRefReference to div.multi-range-slider

Event List

EventDescription
onChangeTrigger when thumb mouse up OR slider value change done
onInputtrigger on thumb mouse move OR slider value changing

typescript props definition

Props = {
	min?: number | string;
	max?: number | string;
	step?: number | string;
	minValue?: number | string;
	maxValue?: number | string;
	baseClassName?: string;
	className?: string;
	style?: React.CSSProperties;
	ruler?: boolean | string;
	label?: boolean | string;
	subSteps?: boolean | string;
	stepOnly?: boolean | string;
	preventWheel?: boolean | string;
	labels?: string[];
	minCaption?: string;
	maxCaption?: string;
	barLeftColor?: string;
	barRightColor?: string;
	barInnerColor?: string;
	thumbLeftColor?: string;
	thumbRightColor?: string;
	onInput?: (e: ChangeResult) => void;
	onChange?: (e: ChangeResult) => void;
};

onInput/onChange event parameter type - typescript

type ChangeResult = {
	min: number;
	max: number;
	minValue: number;
	maxValue: number;
};

To Install

Copy the following line and run on CLI

npm install audiolux-multi-range-slider

AudioLux Demo

Demo

License

ISC

Attribution

This component is a fork of multi-range-slider-react by:

Govind Prasad Gupta

developergovindgupta

govindprasadguptamca@gmail.com

Published and customized under the ISC License.

Copyright 2025 Govind Prasad Gupta

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Keywords

audiolux

FAQs

Package last updated on 14 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts