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

nouislider

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nouislider

noUiSlider is a lightweight JavaScript range slider.

  • 15.8.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
303K
increased by9.66%
Maintainers
0
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 21 Jun 2024

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