npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@3mo/slider

v0.1.5

Published

Web components for sliders that pick a single value or a range, continuous or in discrete steps, built on Material Web.

Readme

Slider

Web components for sliders that pick a single value or a range, continuous or in discrete steps, built on Material Web.

npm Documentation

mo-slider — A slider for choosing a number from a range by dragging a thumb.

mo-range-slider — A slider with two thumbs for choosing a range of numbers.

Installation

npm install @3mo/slider
import '@3mo/slider'

Usage

<mo-slider value='15' min='0' max='100' step='1'></mo-slider>

Examples

  • Discrete — discrete shows the value above the thumb while it is dragged, and ticks marks every step.
  • Disabled — A disabled slider turns gray and ignores input.
  • Custom Properties — --mo-slider-accent-color colors the active track, the thumb and the value label.
  • Parts — The thumb part can be restyled from outside.

Range Slider

  • Default
  • Discrete — discrete shows the values above the thumbs while they are dragged, and ticks marks every step.
  • Disabled — A disabled range slider turns gray and ignores input.
  • Custom Properties — --mo-slider-accent-color colors the active track, the thumbs and the value labels.
  • Parts — The thumb part styles both thumbs from outside.

API

mo-slider

Properties

| Name | Attribute | Type | Default | Description | | --- | --- | --- | --- | --- | | value | value | number | 0 | The selected number | | disabled | disabled | boolean | false | Turns the slider gray and makes it ignore input | | discrete | discrete | boolean | false | Shows the value above the thumb while it is dragged | | ticks | ticks | boolean | false | Marks every step on the track | | step | step | number \| undefined | | The distance between two selectable values, 1 by default | | min | min | number \| undefined | | The smallest selectable value, 0 by default | | max | max | number \| undefined | | The largest selectable value, 100 by default |

Events

| Name | Detail | Description | | --- | --- | --- | | input | T | Dispatched with the value while the thumb is dragged | | change | T | Dispatched with the value when the thumb is released |

CSS custom properties

| Name | Description | | --- | --- | | --mo-slider-accent-color | The color of the active track, the thumb and the value label |

CSS parts

| Name | Description | | --- | --- | | thumb | The handle that is dragged |

mo-range-slider

Properties

| Name | Attribute | Type | Default | Description | | --- | --- | --- | --- | --- | | value | value | RangeSliderValue | [0,0] | The start and end of the selected range, e.g. "[20, 80]" | | disabled | disabled | boolean | false | Turns the slider gray and makes it ignore input | | discrete | discrete | boolean | false | Shows the values above the thumbs while they are dragged | | ticks | ticks | boolean | false | Marks every step on the track | | step | step | number \| undefined | | The distance between two selectable values, 1 by default | | min | min | number \| undefined | | The smallest selectable value, 0 by default | | max | max | number \| undefined | | The largest selectable value, 100 by default |

Events

| Name | Detail | Description | | --- | --- | --- | | input | T | Dispatched with the value while a thumb is dragged | | change | T | Dispatched with the value when a thumb is released |

CSS custom properties

| Name | Description | | --- | --- | | --mo-slider-accent-color | The color of the active track, the thumbs and the value labels |

CSS parts

| Name | Description | | --- | --- | | thumb | The handles that are dragged |

Links

License

MIT © 3MO GmbH