fndn/ui

Components

Number Input

Beta

A number field with buttons to step the value down and up.

Details

A number field with a minus and a plus button inside its end. The field is the Input (the shared control's sizes and looks: its fill, hairline, focus and invalid rings, 16px text on touch) and the buttons are ghost Buttons laid over the room kept at its end. Arrow keys step, Shift + arrow ten steps, Home / End go to the bounds; a button held down repeats. The value can be formatted (currency, percent) with Intl options. Behaviour by Ark UI's number-input (Zag). Controlled or uncontrolled.

Behaviour from Ark UI, the number-input machine of Zag.