Skip to content

Inputs

NumberField

Bit.BlazorUINumberInput

A NumberField (number input, spin button) edits a value of any .NET numeric type, with bounds, stepping and snapping, rounding, .NET formatting in any culture, spin buttons in three layouts, the full ARIA spinbutton keyboard set and EditForm validation.

Field parts

Label placement and templates, descriptions, errors and loading, underlined and borderless fields, icons, prefixes and suffixes, and the clear button.

Label position & template

LabelPlacement puts the label on any side; LabelTemplate replaces it with your own markup.





Description, error & loading

Description is a hint under the field, ErrorMessage a rejection (paints the field, sets aria-invalid, announced politely), Invalid a rejection without a message, and Loading a busy indicator that keeps the field editable (LoadingAriaLabel is what is announced). Each has a template variant; AriaDescription adds screen-reader-only text.

Between 1 and 99 items per order.

We hold the room for 15 minutes.



Anything above 50% needs a manager's approval.

The hint wraps onto a line of its own.

Appearance

Underlined draws only a bottom rule, NoBorder removes the border, FullWidth fills the container.




Icon, prefix & suffix

IconName adds a glyph (named by IconAriaLabel). Prefix/Suffix show a unit or currency that is never part of the value, and are read out with the field. PrefixTemplate/SuffixTemplate take markup.


Distance:
km

Distance:
km

USD

Clear button

ShowClearButton shows an X whenever the input holds text, including text that failed to parse. It is not a tab stop - Escape does the same. Customize with ClearButtonIconName, ClearButtonAriaLabel or ClearButtonTemplate; OnClear reports it.




cleared: 0 time(s)

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.