About
Enhanced shadcn/ui slider
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 { Label } from "@/components/ui/label";
import { Slider } from "@/components/ui/slider";
function Component() {
return (
<div className="space-y-4 min-w-[300px]">
<Label>Slider with reference labels</Label>
<div>
<Slider defaultValue={[15]} min={5} max={35} aria-label="Slider with reference labels" />
<span
className="mt-4 flex w-full items-center justify-between gap-1 text-xs font-medium text-muted-foreground"
aria-hidden="true"
>
<span>5 GB</span>
<span>20 GB</span>
<span>35 GB</span>
</span>
</div>
</div>
);
}
export { Component };














