# Range Slider

> A token-driven single-thumb range slider with a filled track, a floating value bubble above the thumb, step marks, and full keyboard support — fully design-system agnostic.

- Category: Slider
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Orchard
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: range, input
- Page: https://builder.atheros.ai/components/range-slider
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_range_slider/preview-72aa42db86fe.webp

## Features

- `body.dark` redeclares them to prevent injected token inheritance leaks; the semantic roles are explicitly redeclared in dark mode.
- The slider is labelled by the visible title and keeps a design-system-driven hit area of at least 44px.
- Custom filled track driven by a `--fill` custom property and `transform: scaleX` for GPU-friendly updates
- Floating value bubble that appears above the thumb on hover, focus, and drag
- Evenly spaced step marks rendered along the rail
- Real pointer dragging with pointer capture so the drag continues outside the control
- Full keyboard support with Arrow, Home, End, PageUp, and PageDown
- Exposes `role="slider"` with `aria-valuenow`, `aria-valuemin`, and `aria-valuemax`
- Dark/light theme toggle with smooth transitions
- Responsive panel that adapts padding down to 260px
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Slider role** — `role="slider"` with `aria-valuenow`, `aria-valuemin`, `aria-valuemax`, and `aria-valuetext`
- **Keyboard control** — Arrow keys step, Home/End jump to bounds, PageUp/PageDown move by a larger step
- **Decorative parts** — Rail, fill, ticks, thumb, and bubble carry `aria-hidden="true"`
- **Focus indicators** — `:focus-visible` with `--ring` outline on all interactive elements
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `ArrowRight` — Increase the value by one step
- `ArrowLeft` — Decrease the value by one step
- `Home` — Jump to the minimum value
- `End` — Jump to the maximum value
- `PageUp` — Increase the value by a larger step
- `PageDown` — Decrease the value by a larger step

## Common questions

**Which frameworks is Range Slider available in?**

Range Slider ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Range Slider free?**

Range Slider is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Range Slider support dark mode?**

Yes. Range Slider ships light and dark themes, both drawn from the Orchard design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Range Slider live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/range-slider

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
