A − value + field whose digits roll on strips, with hold-to-repeat keys, a scrubbable ruler and a running total; plus NumberNodes, a small range as nodes on a rule.
pnpm dlx shadcn@latest add @beautiful-ui-pro/number-fieldNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The 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.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { NumberField } from "@/components/ui/notchset/number-field";
export function SeatCount() {
const [seats, setSeats] = React.useState(5);
return <NumberField value={seats} onValueChange={setSeats} min={1} max={50} label="SEATS" unit={(v) => (v === 1 ? "SEAT" : "SEATS")} ruler />;
}value / onValueChange–
number / fnControlled.
min / max / step / largeStep–
numberLimits and steps (PgUp/PgDn use largeStep).
unit / help / total–
node or (value) => nodeThe unit beside the value; the lines under it.
ruler / rulerLabels–
boolean / number[]The scrubbable ruler.
NumberNodes–
{ value, onValueChange, min, max, label, meta }A radio group of nodes for 0–5 style ranges.
components/ui/notchset/number-field.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.