Slider
Neumorphic slider on the Radix primitive. A carved groove filled with the accent up to the value, and a raised bead with an accent pip as the thumb.
Installation
bunx --bun shadcn@latest add https://neu.beyondtheinnovation.com/r/neu-slider.jsonUsage
import { Slider } from "@/components/ui/neu/slider"<Slider defaultValue={[33]} max={100} step={1} />Range
Pass two or more values for a range or several thumbs. thumbLabels names each thumb; without it, the thumbs take aria-label with their position appended.
<Slider
defaultValue={[20, 60]}
thumbLabels={["Minimum price", "Maximum price"]}
/>Vertical
Use orientation="vertical" and give the parent a height.
<div className="h-44">
<Slider defaultValue={[66]} orientation="vertical" aria-label="Level" />
</div>