Slider

An input component that allows users to select values within a range

Usage

import { Slider } from "#/ui/components/Slider"
<Slider />

Min/Max

You can set the min and max values of the slider using the min and max props.

3

(As we don’t display the value anywhere right now, the only way we can check this works is by seeing the increased gaps between each step)

Controlled

Requires JS

We can manage the state of the slider from outside the component by passing in the value and onChange props.

20