The shadcn Slider with value tags, ticks and marks.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { Slider } from "@/components/ui/notchset/slider";
const usd = (v: number) => `$${v.toLocaleString("en-US")}`;
export function BudgetBand() {
const [band, setBand] = React.useState([2000, 7500]);
return <Slider value={band} onValueChange={setBand} max={10000} step={250} tagFormatter={usd} thumbLabels={["Min", "Max"]} />;
}value / onValueChange–
number[]One value or two (a range).
min / max / step–
numberThe scale.
minStepsBetweenValues–
numberThe narrowest range.
tagFormatter–
(v) => stringThe tag's text (Base UI's own `format` takes Intl options, as in shadcn).
orientation–
"horizontal" | "vertical"As shadcn's; ticks and marks draw on horizontal sliders only.
thumbLabels–
string[]Each thumb's aria-label.
ticks–
{ every, major? }Ticks under the rail.
marks–
{ value, label }[]Labels under it.
Sliderdata-slot="slider"
The root.
—data-slot="slider-range"
The fill.
—data-slot="slider-thumb"
A thumb.
components/ui/notchset/slider.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/slider.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/slider.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
pnpm add @base-ui/react@^1The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release