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

@rcarls/rc-range-slider

v0.3.2

Published

Two-thumb range slider backed by native range inputs for min/max values.

Downloads

760

Readme

@rcarls/rc-range-slider

Two-thumb range slider backed by native range inputs for min/max values, following the WAI-ARIA Multi-Thumb Slider pattern.

Docs: https://richardcarls.github.io/rc-webcomponents/components/rc-range-slider.

rc-range-slider progressively enhances two direct child <input type="range"> elements. Before upgrade, those inputs are the usable no-JavaScript fallback. After upgrade, the inputs remain in light DOM as hidden form reflectors while custom shadow-DOM thumbs provide the APG slider interaction surface.

<rc-range-slider aria-label="Price range">
  <input type="range" name="price-min" min="0" max="100" value="20" aria-label="Minimum">
  <input type="range" name="price-max" min="0" max="100" value="80" aria-label="Maximum">
</rc-range-slider>

The custom thumbs expose role="slider", stable tab order, dynamic aria-valuemin / aria-valuemax bounds, keyboard support, and optional aria-valuetext through low-value-text and high-value-text. The hidden native inputs keep their name, current value, and disabled state so normal form submission keeps working.

Styling Hooks

The component exposes root, group, track, range, thumb, low-thumb, high-thumb, value-display, low-value-display, and high-value-display CSS parts.

The selected range, thumb border, focus ring, hover, and active states use --rc-range-slider-accent, which defaults to var(--rc-accent, Highlight). Set --rc-accent at the app or theme boundary to share one accent color across components; without that token, the slider falls back to the system Highlight color.

Consumers can decorate the track with a real named slot:

<rc-range-slider aria-label="Price range">
  <span slot="track-background" class="threshold-bands"></span>
  <input type="range" name="price-min" min="0" max="100" value="20" aria-label="Minimum">
  <input type="range" name="price-max" min="0" max="100" value="80" aria-label="Maximum">
</rc-range-slider>

Visual thumb styling belongs to CSS parts, not native input pseudo-elements, because the upgraded interaction surface is custom shadow DOM. The fallback inputs remain ordinary native range controls before the component upgrades.