Components
Charts
Setting UpArea ChartLine ChartBar ChartPie ChartRadar ChartRadial Bar ChartScatter ChartTooltip ChartColors
Color AreaColor FieldColor PickerColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrag and drop
Drop ZoneForms
CheckboxCheckbox GroupFieldFormInput OTPNumber FieldRadio GroupSearch FieldTag FieldText FieldTextareaUtilities
Visually HiddenSlider
Swipe left or right to adjust values, like sliding the volume on your stereo, perfect for gradual control.
Slider
A slider is a horizontal bar that you can drag left or right to select a value within a range, similar to adjusting volume.
Installation
If you hit any issues, make sure you check out the installation guide here for more information.
Composed Components
When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.
The Slider's decked out with several components to make it bangin'.
Manual Installation
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
Step
Set a step value on the slider, and it will increment or decrement by that fixed amount each time you adjust it.
Tooltip
Add a tooltip to the slider to show the current value.
Range
By passing an array to the defaultValue
or value
props, you can create a range slider.
Orientation
You can change the orientation of the slider to vertical.
Suffix Prefix
Sometimes you need to add a prefix or suffix to the slider, like a volume icon.
Description
Add a description to the slider.
Controlled
You can control the slider's value by using the value
prop.
Disabled
When the slider is disabled, it appears grayed out and becomes non-interactive.