Skip to content
hightouchUI

Design system

v40.8.0

Slider

Allow users to make selections from a range of values.

Example

Usage

Basic

Disabled

Custom range

Custom step

Guidelines

When to use

  • When setting a numerical value within a fixed range.

When not to use

  • Don't use this if the value is unbounded.

Props

Inherits margin props.

NameDefaultDescription
isDisabledfalseboolean

Determines if the slider is disabled.

aria-label

string

Label that describes the purpose of this slider for screen readers.

value

number

The value of the slider in controlled mode.

min0number

Minimum allowed value.

max100number

Maximum allowed value.

step

1

The step in which increments/decrements have to be made.

onChange

(value: number) => void

Function called whenever the slider value changes (by dragging or clicking).