Skip to content

Number Field

A spinbutton for numbers of any type: culture-aware formatting and parsing, steppers that repeat while held, keyboard, wheel and scrub.

Styled with CSS Tailwind

Quantity with steppers

↑ / ↓ step, Shift steps by LargeStep, Home / End jump to the bounds. The buttons repeat while held (data-pressed:) and disable themselves at the bounds; the root gets data-focused while the input has focus, styled here with a custom data-[focused]: variant.

Value: 1

Currency, percent and culture

Format is a .NET numeric format string and Culture the culture numbers are written and read in: 1.234,5 parses in German, 1,234.5 in American English.

Scrub area and wheel

Drag the W handle sideways to change the value (data-[scrubbing]: while dragging); with AllowWheelScrub the wheel steps the focused input.

Width: 320
An unhandled error has occurred. Reload 🗙