Back to Components
Components

Slider Range

Dual-handle range slider with labels and live min max values.

Budget range

MinimumMaximum
2080

Dependencies

  • @radix-ui/react-slider
  • clsx
  • tailwind-merge

Files

  • components/ui/slider-range.tsx

Installation

Using shadcn CLI

npx shadcn add slider-range --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install @radix-ui/react-slider clsx tailwind-merge