Reactolith UI Getting Started Introduction Installation Usage Layout Aspect Ratio Card Resizable Scroll Area Separator Direction Provider Forms Button Button Group Calendar Checkbox Combobox Field Input Input Group Input OTP Label Native Select Radio Group Select Slider Switch Textarea Toggle Toggle Group Data Display Accordion Avatar Badge Carousel Chart Collapsible Item Kbd Table Feedback Alert Empty Progress Skeleton Sonner Spinner Overlay Alert Dialog Context Menu Dialog Dropdown Menu Hover Card Popover Sheet Tooltip Navigation Breadcrumb Command Menubar Navigation Menu Pagination Sidebar Tabs

Slider

An input where the user selects a value from within a given range.

Preview

Usage

<div class="space-y-4 max-w-md">
  <ui-slider json-default-value="[33]"></ui-slider>
  <ui-slider json-default-value="[66]"></ui-slider>
</div>

Sub-components

<ui-slider>

Props

<ui-slider>

PropTypeDefaultDescription
valuenumber[]Controlled value.
defaultValuenumber[][0]Default value.
minnumber0Minimum value.
maxnumber100Maximum value.
stepnumber1Step increment.

All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.