CirrusOpen Skies
1:24−2:12
Max Stretch
50px
Bounce
0.5
Thickness
6px
Active Thickness
12px
Radius
Full
Rest Opacity
0.7
Fill From
0
Step Size
10

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
36 properties
valueControlled value. Pair it with onChange.
defaultValue50Starting value when uncontrolled.
startingValueLowest value of the range.
maxValue100Highest value of the range.
isSteppedSnaps the value to stepSize increments.
stepSizeSize of each step when isStepped is on.
onChange(value: number) => voidCalled as the value changes.
onChangeEnd(value: number) => voidCalled when a drag, key press or scroll finishes.
orientation'horizontal' | 'vertical''horizontal'Direction of the track. Vertical sliders fill from the bottom.
leftIconReactNodevolume low iconIcon at the start of the track. Pass null to hide it.
rightIconReactNodevolume high iconIcon at the end of the track. Pass null to hide it.
iconPlacement'outside' | 'inside''outside'Puts the icons beside the track, or inside it once the track is thick enough to hold them.
valuePosition'top' | 'bubble' | 'inside' | 'none''top'Where the value shows. Bubble rides above the fill while the slider is active.
formatValue(value: number) => stringFormats the shown value and the value read by screen readers.
ticksboolean | number[]Marks along the track. True marks every step, or every tenth when not stepped. An array marks those values.
thumbShows a round handle at the end of the fill.
fillFromstartingValueValue the fill grows from. Set it to the middle of the range for a centered, two-way fill.
thickness6Track thickness in px at rest.
activeThickness12Track thickness in px while hovered, focused or dragged.
radiusCorner radius of the track in px. Fully round when left out.
restOpacity0.7Opacity while idle. The slider brightens to full when active.
growOnHoverHovering activates the slider. When off it only grows while pressed or focused.
maxStretch50Furthest the track stretches in px when pulled past an end. 0 turns the stretch off.
bounce0.5How much the track wobbles as it springs back, from 0 to 0.95.
jumpToClickPressing the track jumps to the pointer. When off, dragging moves the value from where it was.
wheelLets the scroll wheel change the value.
trackColor'color-mix(in srgb, currentColor 18%, transparent)'Color of the empty track.
rangeColor'currentColor'Color of the fill.
iconColor'currentColor'Color of the outside icons.
contentColor'currentColor'Color of icons, values and ticks over the empty track.
fillContentColor'auto'Color of icons, values and ticks over the fill. Auto picks light or dark from the fill color.
thumbColor'#ffffff'Color of the handle.
disabledTurns off interaction and dims the slider.
ariaLabel'Slider'Accessible name of the slider.
Extra class names for the root.
Inline styles for the root.
valuenumber

Controlled value. Pair it with onChange.

defaultValuenumber

Starting value when uncontrolled.

Default50
startingValuenumber

Lowest value of the range.

maxValuenumber

Highest value of the range.

Default100
isSteppedboolean

Snaps the value to stepSize increments.

stepSizenumber

Size of each step when isStepped is on.

onChange(value: number) => void

Called as the value changes.

onChangeEnd(value: number) => void

Called when a drag, key press or scroll finishes.

orientation'horizontal' | 'vertical'

Direction of the track. Vertical sliders fill from the bottom.

Default'horizontal'
leftIconReactNode

Icon at the start of the track. Pass null to hide it.

Defaultvolume low icon
rightIconReactNode

Icon at the end of the track. Pass null to hide it.

Defaultvolume high icon
iconPlacement'outside' | 'inside'

Puts the icons beside the track, or inside it once the track is thick enough to hold them.

Default'outside'
valuePosition'top' | 'bubble' | 'inside' | 'none'

Where the value shows. Bubble rides above the fill while the slider is active.

Default'top'
formatValue(value: number) => string

Formats the shown value and the value read by screen readers.

ticksboolean | number[]

Marks along the track. True marks every step, or every tenth when not stepped. An array marks those values.

thumbboolean

Shows a round handle at the end of the fill.

fillFromnumber

Value the fill grows from. Set it to the middle of the range for a centered, two-way fill.

DefaultstartingValue
thicknessnumber

Track thickness in px at rest.

Default6
activeThicknessnumber

Track thickness in px while hovered, focused or dragged.

Default12
radiusnumber

Corner radius of the track in px. Fully round when left out.

restOpacitynumber

Opacity while idle. The slider brightens to full when active.

Default0.7
growOnHoverboolean

Hovering activates the slider. When off it only grows while pressed or focused.

maxStretchnumber

Furthest the track stretches in px when pulled past an end. 0 turns the stretch off.

Default50
bouncenumber

How much the track wobbles as it springs back, from 0 to 0.95.

Default0.5
jumpToClickboolean

Pressing the track jumps to the pointer. When off, dragging moves the value from where it was.

wheelboolean

Lets the scroll wheel change the value.

trackColorstring

Color of the empty track.

Default'color-mix(in srgb, currentColor 18%, transparent)'
rangeColorstring

Color of the fill.

Default'currentColor'
iconColorstring

Color of the outside icons.

Default'currentColor'
contentColorstring

Color of icons, values and ticks over the empty track.

Default'currentColor'
fillContentColorstring

Color of icons, values and ticks over the fill. Auto picks light or dark from the fill color.

Default'auto'
thumbColorstring

Color of the handle.

Default'#ffffff'
disabledboolean

Turns off interaction and dims the slider.

ariaLabelstring

Accessible name of the slider.

Default'Slider'

Extra class names for the root.

Inline styles for the root.

Dependencies

2 required packages

npm install @hugeicons/react @hugeicons/core-free-icons