This component no longer exists. It was in Pure UI’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-10 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Number Field
pure-ui/number-fieldRemovedComponent
A customizable number field component
Install it
npx shadcn@latest add https://raw.githubusercontent.com/MusKRI/pure-ui/main/public/r/number-field.jsonSource
1"use client";23import { NumberField as NumberFieldPrimitive } from "@base-ui/react/number-field";45import { cn } from "@/lib/classes";67interface NumberFieldProps extends NumberFieldPrimitive.Root.Props {}89function NumberField({ className, ...props }: NumberFieldProps) {10 return (11 <NumberFieldPrimitive.Root12 className={cn(13 "flex w-full flex-col items-start gap-2 max-w-[200px]",14 className15 )}16 data-slot="number-field"17 {...props}18 />19 );20}2122interface NumberFieldGroupProps extends NumberFieldPrimitive.Group.Props {}2324function NumberFieldGroup({ className, ...props }: NumberFieldGroupProps) {25 return (26 <NumberFieldPrimitive.Group27 className={cn(28 "relative flex w-full rounded-lg border border-input bg-background dark:bg-input/32 text-sm shadow-xs transition-colors focus-within:border-ring focus-within:ring-[1px] focus-within:ring-ring data-disabled:pointer-events-none data-disabled:opacity-64",29 className30 )}31 data-slot="number-field-group"32 {...props}33 />34 );35}3637interface NumberFieldInputProps extends NumberFieldPrimitive.Input.Props {}3839function NumberFieldInput({ className, ...props }: NumberFieldInputProps) {40 return (41 <NumberFieldPrimitive.Input42 className={cn(43 "flex-1 w-full min-w-0 bg-transparent px-3 py-1.5 text-center outline-none tabular-nums",44 className45 )}46 data-slot="number-field-input"47 {...props}48 />49 );50}5152interface NumberFieldDecrementProps53 extends NumberFieldPrimitive.Decrement.Props {}5455function NumberFieldDecrement({56 className,57 ...props58}: NumberFieldDecrementProps) {59 return (60 <NumberFieldPrimitive.Decrement61 className={cn(62 "flex shrink-0 cursor-pointer items-center justify-center hover:bg-accent rounded-s-lg px-3 transition-colors disabled:pointer-events-none disabled:opacity-64 disabled:cursor-not-allowed",63 className64 )}65 data-slot="number-field-decrement"66 {...props}67 >68 <MinusIcon />69 </NumberFieldPrimitive.Decrement>70 );71}7273interface NumberFieldIncrementProps74 extends NumberFieldPrimitive.Increment.Props {}7576function NumberFieldIncrement({77 className,78 ...props79}: NumberFieldIncrementProps) {80 return (81 <NumberFieldPrimitive.Increment82 className={cn(83// … truncated
What it pulls in
npm packages
Other registry items
