Slider

beta llms.txt

Single-value range input with bindable value, horizontal or vertical orientation, and customizable thumb and track rendering.

Installation

bash
ts

Preset Configuration

Customize the appearance using presets

Examples

Explore different variations and use cases

Basic Slider

Horizontal single-value slider with live binding

Custom Range

Slider with negative and decimal step values

Vertical Slider

Vertical orientation for compact control rails

Custom Thumb and Track

Render custom snippets for thumb and track visuals

Disabled Slider

Non-interactive slider for locked or unavailable settings

API Reference

Accessibility

  • Uses a native hidden input type="range" for robust keyboard and assistive technology support
  • Supports keyboard interaction through the native range input semantics
  • Exposes aria-valuemin, aria-valuemax, and aria-valuenow based on current slider state
  • Supports aria-disabled and disabled behavior for non-interactive states
  • Works with labels and forms via forwarded id and name props

© 2026 Svelte Atoms. Open source under the MIT license.

Built with Svelte 5 · Runes · TailwindCSS