Slider

Selects a value or range by dragging.

60%

Installation

  1. Add the registryOnce per project
  2. Add slider

Usage

The range is 0 to 100 unless you set min and max. Name the slider with a FieldLabel in the same Field, or an aria-label.

Examples

Range

Pass an array of two values for two thumbs. Name each one with getAriaLabel.

$20k – $75k

Steps

step sets the increment.

Vertical

Set orientation="vertical" and give the parent a height.

Disabled

Props

onValueChange receives the same shape as value: a number, or an array of numbers.

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.

Slider