Shadcn Number Input Components

A numeric input with step buttons, keyboard stepping, min and max bounds, locale aware currency, percent and unit formatting, drag to scrub, and mouse wheel support, built on ui-sdk and styled with shadcn/ui. Browse our collection of 15 Shadcn Number Input variants.

Basic

Buttons on both sides

Up to 10 per order.

Stacked chevrons

Min, max and step

Between 0.5 and 8 in half hours. Hold Shift to move by 2.

Decimal precision

Two fraction digits.

Three fraction digits.

Currency and percent

Final price$109.65

With units

kg
px
px

Scrubber

Drag the label, or a letter below, sideways to scrub.

Frame

Mouse wheel

px

Focus the input, then scroll over it.

Clamp vs out of range

Type 250 and leave the field to clamp it to 100.

Long press repeat

Press and hold a button to keep stepping.

Disabled and read-only

Sold out. The quantity is locked.

Set by your plan. Read-only values still submit.

In a form

Everyone who needs a seat.

Cart quantity

  • Everyday TeeSand, M
    $56.00
  • Stoneware MugMatte black
    $18.00
  • Canvas ToteNatural
    $24.00
Subtotal$98.00

RTL

m²
Unlock premium components
Get full control of shadcn/ui components, blocks and instances, including future additions.

Explore Shadcn Blocks

Ready-made page sections built with the same components.

View all blocks