About
A single-value or min/max range slider with draggable thumbs, exact-value bubbles, and full keyboard control.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Slider to your project and fits it to your theme.
Code
How Slider is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { RangeSlider, Slider } from "@/components/ui/slider";
export default function SliderDemo() {
return (
<div className="flex w-full max-w-md flex-col gap-10">
<Slider label="Volume" defaultValue={42} />
<RangeSlider
label="Monthly budget"
defaultValue={[25, 75]}
formatValue={(value) => `$${value}`}
/>
</div>
);
}















