百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

toolcool-range-slider

> 开发工具
开源

这是一款使用 TypeScript 编写的响应式范围滑动条库,采用 Web 组件技术。它是纯 JavaScript,不需要额外依赖。它具有丰富的功能集:

99 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

这是一款使用 TypeScript 编写的响应式范围滑动条库,采用 Web 组件技术。它是纯 JavaScript,不需要额外依赖。它具有丰富的功能集:

Tool Cool Range Slider

Responsive range slider library written in typescript and using web component technologies. Pure JavaScript without additional dependencies. It has a rich set of settings, including any number of pointers (knobs), vertical and horizontal slider, touch, mousewheel and keyboard support, local and session storage, range dragging, and RTL support. The functionality of the library can be extended using plugins.

Links

  • Website
  • Documentation

Any Number of Pointers

The library supports any number of pointers (knobs/handles): one-pointer range slider, two-pointers range slider, or as many as you need.

Mobile Ready

Responsive and mobile-ready range slider that looks good on any devices :iphone:. It supports touch, mousewheel events, and keyboard.

Accessibility

It accessible via ARIA-attributes :shield:

Marks Plugin

Range slider library has a standalone Marks Plugin. This allows to generate points along the slider:

ES6 JavaScript & Typescript

The library is built with Typescript and does not use external dependencies :unlock:. The core is 28KB minified or 9KB compressed (GZip).

Themes :art:

The library has additional theme plugins with a ready-made set of styles such as gradients, glass, pointer shapes and more. It's also possible to develop your own theme as an external plugin.

https://user-images.githubusercontent.com/106236790/192861157-6bc694ee-3970-4264-b44f-5991b1511c4a.mov

Styles & Design

The library has multiple options for customizing :wrench: the appearance of the slider. Width, height, border radius, colors, hover and focus, and other properties can be customized using the slider attributes.

Images and SVGs can be used as pointers.

Direction & Orientation

The library supports horizontal and vertical orientation :globe_with_meridians:. It also supports left to right and right to left directions for a horizontal slider, and top to bottom and bottom to top for vertical sliders.

Numbers, Text, or Range

The slider range can be defined by a minimum and maximum numbers. Another option is to provide a list of individual (discrete) values. Both text :writing_hand: and numeric data are supported.

Local & Session Storage

Local storage :floppy_disk: and session storage support as a standalone plugin. The user selection will be saved and restored after page refresh or navigation from other pages.

Moving Tooltip Plugin

Range slider library has a standalone Moving Tooltip Plugin. The plugin adds a moving tooltip to each pointer. You can change the tooltip color, size, and distance to pointer.

Range Dragging

The library also supports range dragging:

Origin at Center

The library also has an Origin at Center Plugin. This plugin makes the origin of the pointer always in the center.

Other Features

  • Based on web component technologies.
  • Allows programmatic attribute changes :computer:
  • Simple dynamic rendering after ajax requests or delays.
  • Disabled/enabled range slider (including API).
  • Possibility to disable only one pointer.
  • Non-linear range slider :chart_with_downwards_trend:
  • Optional animation on panel click.
  • Works well with Bootstrap and other CSS frameworks :+1:
  • No CSS conflicts due to web components.
  • Automatically generated labels as a standalone plugin.
  • Any number of sliders on one page.
  • Supports two (and more) pointers overlap, pointers max and min distance.
  • The functionality of the library can be extended using plugins.
  • The range slide can be used in React and other frameworks.
  • Extensive API based on TypeScript.

Plugins

  • Binding Labels Plugin
  • Auto Generated Labels Plugin
  • Moving Tooltip Plugin
  • Storage Plugin
  • Pointer Shapes CSS Plugin
  • Themes CSS Plugin
  • Origin at Center Plugin
  • Marks Plugin

License

MIT license

It can be used for free in any personal or commercial project :gift:

React Round Slider

Try my other project React Round Slider - an accessible and mobile-friendly React round slider library, powered by TypeScript and SVG.

Tool Cool Color Picker

Tool Cool Color Picker is a color picker library written in typescript and using web component technologies.

Other Projects

  • ミ☆ mzParticles ☆彡 - TypeScript library for creating particle effects.
  • mzMath - a collection of typescript-based math helpers.
  • mzSVG - TypeScript-based library for managing SVG in the browser and Node.js.
  • React Input Number - React component that provides a user-friendly interface for entering numerical values.
  • Stripes Maker - Node.js stripe pattern generator and maker.
  • mzCanvas - The TypeScript-based library for manipulating <canvas> element and 2D graphics in the browser.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript2-pointers2-pointers-range-sliderbottom-to-topinput

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具