Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nouislider

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nouislider

noUiSlider is lightweight JavaScript range slider, originally developed to be a jQuery UI alternative.

  • 8.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
303K
increased by9.66%
Maintainers
2
Weekly downloads
 
Created

What is nouislider?

The 'nouislider' npm package is a lightweight JavaScript range slider library. It allows you to create highly customizable and responsive sliders with a variety of features such as multiple handles, tooltips, and more. It is particularly useful for creating user-friendly interfaces for selecting a range of values.

What are nouislider's main functionalities?

Basic Slider

This code creates a basic slider with two handles starting at 20 and 80, connected by a bar. The range of the slider is from 0 to 100.

const noUiSlider = require('nouislider');
const slider = document.getElementById('slider');
noUiSlider.create(slider, {
  start: [20, 80],
  connect: true,
  range: {
    'min': 0,
    'max': 100
  }
});

Slider with Tooltips

This code creates a slider with tooltips that display the current value of each handle. The range of the slider is from 0 to 100.

const noUiSlider = require('nouislider');
const slider = document.getElementById('slider');
noUiSlider.create(slider, {
  start: [20, 80],
  tooltips: true,
  range: {
    'min': 0,
    'max': 100
  }
});

Vertical Slider

This code creates a vertical slider with two handles starting at 20 and 80. The range of the slider is from 0 to 100.

const noUiSlider = require('nouislider');
const slider = document.getElementById('slider');
noUiSlider.create(slider, {
  start: [20, 80],
  orientation: 'vertical',
  range: {
    'min': 0,
    'max': 100
  }
});

Slider with Stepping

This code creates a slider with steps of 10 units. The range of the slider is from 0 to 100.

const noUiSlider = require('nouislider');
const slider = document.getElementById('slider');
noUiSlider.create(slider, {
  start: [20, 80],
  step: 10,
  range: {
    'min': 0,
    'max': 100
  }
});

Other packages similar to nouislider

FAQs

Package last updated on 24 Apr 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc