Slider

An easily stylable range input.

Installation

pnpm dlx shadcn@latest add @lumi-ui/slider

Basic Usage

import { Slider } from "@/components/ui/slider"
<Slider />

Anatomy

 <Slider />

Features

Range Slider

25 – 45

Vertical Slider

Edge Aligned Thumbs

Use thumbAlignment="edge" to keep the entire thumb contained inside the track boundaries. This is useful when:

  1. The slider is flush against a screen edge or container wall.
  2. The parent container has overflow: hidden (which would otherwise clip half the thumb).
ModeVisual Behavior
center (Default)The center of the thumb aligns with the start/end. The thumb overflows the track by 50% of its width.
edgeThe outer edge of the thumb aligns with the start/end. The thumb stays 100% inside the track.

Recipes

Custom Slider

Price Range

$250 - $750

Integration with Form

See Form Integration for more information.