# Credit Slider

> A step-based credit slider with animated counter, gradient track, snap-to-step dots, drag interaction, and live price summary.

- Category: Slider
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Caret
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: pricing
- Page: https://builder.atheros.ai/components/credit-slider
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_credit_slider/preview-1a7bf8bcc77d.webp

## Features

- Seven discrete credit steps (500, 750, 1,000, 1,500, 2,000, 3,000, 5,000) with snap-to-step behavior
- Animated counter that eases between values with a cubic-out curve
- Gradient track fill with a soft glow layer that intensifies during drag
- Custom thumb with a pulsing halo and inner accent dot
- Step dots along the track that distinguish filled from unfilled states
- Clickable credit labels below the track for direct step selection
- Live price summary showing total price, per-credit rate, and savings percentage
- Pointer drag with capture for smooth cross-boundary interaction
- Keyboard arrows to step through credit amounts
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Slider role** — `role="slider"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-label`
- **Keyboard navigation** — Arrow keys step through credit amounts in both directions
- **Step labels** — Each visible credit label is a focusable button with an `aria-label`
- **Keyboard activation** — Credit labels are native buttons activated by Enter and Space
- **Focus indicators** — `:focus-visible` with `--ring` outline on all interactive elements
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `ArrowRight` — Move to the next credit step
- `ArrowUp` — Move to the next credit step
- `ArrowLeft` — Move to the previous credit step
- `ArrowDown` — Move to the previous credit step
- `Enter` — Activate the focused credit label
- `Space` — Activate the focused credit label
- `Tab` — Move focus between the slider and labels

## Common questions

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

Credit 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 Credit Slider free?**

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

**Does Credit Slider support dark mode?**

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

## Get the code

Preview Credit 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/credit-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
