Slider

Display the current value and an inputable range.

General

Accept clicks or drag actions.

Preview
See code
40

Type

Differentiate states by color.

Preview
See code
40
20
70
60
10
80
90

Disabled

Do not respond to drag and click.

Preview
See code
50

Step

Different granularity.

Preview
See code
0

Range

Specifies the maximum or minimum value of the Slider.

Preview
See code
25
0.4

Event

Get event when slide.

Preview
See code
0

APIs

Slider.Props

AttributeDescriptionTypeAccepted valuesDefault
initialValueinitial valuenumber-0
valueslider valuenumber-0
typecurrent typeSliderTypesSliderTypesdefault
stepthe granularity the slider can step through valuesnumber-1
maxthe maximum value of slidernumber-100
minthe minimum value of slidernumber-0
disableddisable slider interactionbooleanfalse
showMarkersshow each markerboolean-false
hideValuehide slider valueboolean-false
onChangecalled when the value of silder changes(val: number) => void--
...native propsHTMLAttributes'id', 'name', 'className', ...-

SliderTypes

type SliderTypes =
  | 'default'
  | 'primary'
  | 'secondary'
  | 'success'
  | 'warning'
  | 'error'
  | 'info'
Edit this page on GitHub

Previous

Rating

Next

Slider

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet