Slider

A 320px track for choosing a value, or two thumbs for choosing a span, with the label, (Optional) and the amount above it.

FreeReact and VueSlider blocks16 blocksPro
Label(Optional)

Add an Orvain Slider labelled “Label” with the sub-label “(Optional)”, at 0, no tooltip.

Orvain MCPIncluded with the library

When to use#

  • For values where approximate position matters more than the exact number: volume, a price range, a zoom level.
  • The Range Slider for filters with a minimum and a maximum.

When not to use

  • Use an Input for exact values such as a quantity or an age.

Anatomy#

1Header

Label, (Optional) and the amount on the right, Satoshi 12/1.5, 4px above the track.

2Track

6px tall, fully round, #f2f2f2.

3Fill

The chosen part of the track in #005cf8.

4Thumb

A 16px white disc with a 6px centre, blue once the value leaves the start; a 24px hit area.

5Tooltip

Optional: the value in a dark bubble 3px above the thumb.

States#

Percentage

Figma draws 0, 25, 50, 75 and 100%; any step between works.

Left Range and Right Range

The two ends of a Range Slider; the thumbs cannot cross.

At the start

The thumb's centre stays grey until the value moves.

Disabled

Faded to 40% and inert (the library's; Figma draws none).

Source#

The Slider ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.

Install the packages

Used in these blocks