build69
build69  /  Components  /  Selection & Choice  /  Slider

Slider

v1.0.4Updated 27 Aug 2026

Range slider control (Radix). Single or dual-thumb for numeric range input. Adds marks with labels, a hover value bubble, paired numeric inputs, and tonal variants.

Preview

Live · 14 stories
DefaultOpen ↗
Why this is recommendedformrangeslidernumeric+2

The default, out-of-the-box Slider.

Recommended for+14
  • Volume / brightness
  • Price range filter
  • Settings with bounded numeric
  • Image / colour adjustment
Tags+6
formrangeslidernumericmarksdefault
Features+4
  • Single / range
  • Step quantization
  • Keyboard control
  • Marks with labels
  • Hover value bubble
  • Paired numeric inputs
  • Tonal variants (primary / success / warning / destructive)
Not recommended for−2
  • Precise numeric input (use Input type="number")

Install

Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.

get_registry_item({ name: "Slider" })

Usage

import { Slider } from '@/components/inputs/slider';

<Slider min={0} max={100} marks={[{ value: 25 }, { value: 75 }]} showValueBubble />

Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.

Props

PropTypeRequired
value

Current values

number[]
onValueChange

Value change callback

function
min

Minimum value

number
max

Maximum value

number
marks

Mark positions + labels

SliderMark[]
showValueBubble

Show hover value bubble

boolean
showInputs

Show paired numeric inputs

boolean
tone

Colour tone

'default' | 'primary' | 'success' | 'warning' | 'destructive'

Every tonal component shares the same tone × emphasis API, so the pair looks identical across Button, Badge, Alert and more.

Related