#dioxus #leptos #slider #yew #rust

slider-rs

🎚️ A highly customizable slider component for WASM frameworks like Yew, Dioxus, and Leptos

2 releases

Uses new Rust 2024

new 0.0.2 May 15, 2025
0.0.1 May 13, 2025

#704 in Science

Download history 124/week @ 2025-05-09

128 downloads per month

MIT license

68KB
1.5K SLoC

🎚️ Slider RS

Crates.io Crates.io Downloads Crates.io License made-with-rust Rust Maintenance

Join our Discord

logo

🎬 Demo

Framework Live Demo
Yew Netlify Status
Dioxus Netlify Status
Leptos TODO

πŸ“œ Intro

Slider RS is a highly customizable, precision-focused slider component designed for WASM-based frameworks like Yew, Dioxus, and Leptos. It supports single and range (double-thumb) sliders, rich styling options, full keyboard navigation, and robust accessibility features for inclusive user interfaces.

πŸ€” Why Use Slider RS?

The following features make Slider RS an essential component for modern web apps built with Rust & WebAssembly:

  1. 🎚️ Single & Range Sliders: Supports both single-value sliders and double-thumb range selectors out of the box.
  2. 🎨 Fully Customizable Styling: Fine-grained control over classes, inline styles, custom thumb content, and icon slots.
  3. 🦽 Accessibility Ready: Built-in ARIA support, keyboard interactions, and focus management for screen readers.
  4. ⚑ Reactive & Efficient: Powered by Callback system with optimized rendering via prop diffing.
  5. πŸ”’ Advanced Features: Tick marks, tooltips, step indicators, and responsive orientation handling.
  6. πŸ–±οΈ Smooth UX: Range dragging, keyboard stepping, hover tooltips, and fine-tuned input behaviors.

Yew Usage

Refer to our guide to integrate this component into your Yew app.

🧬 Dioxus Usage

Refer to our guide to integrate this component into your Dioxus app.

🌱 Leptos Usage (TODO)

Refer to our guide to integrate this component into your Leptos app.

🀝 Contributions

Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Slider RS better.

  1. Fork the repository.
  2. Create a new branch for your feature/bugfix.
  3. Submit a pull request for review.

πŸ“œ License

Slider RS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.

Dependencies

~7–20MB
~287K SLoC