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.
Customization
Defaults through BitParams, the Background, Border and Accent colors, external icons, sizes, Style & Class with the CSS variables, and right-to-left fields.
Cascading parameters
BitParams with a BitNumberFieldParams sets defaults for every number field inside it. A field's own
parameters win; only unset ones are filled in.
cm
Between 0 and 500, in steps of 5.
cm
Between 0 and 500, in steps of 5.
m
Between 0 and 500, in steps of 5.
Background
Background picks the fill (Primary by default); Transparent blends into a colored surface.
Border
Border picks the border color (Primary by default). Transparent hides it but keeps its space, unlike
NoBorder.
Accent
Accent colors the focus ring, the busy indicator, and the icon/prefix/suffix while focused. An invalid field
still shows the error color. Focus a field to see it.
$
$
$
$
$
$
$
$
$
$
$
$
$
$
$
$
$
External Icons
Icon, IncrementIcon, DecrementIcon and ClearButtonIcon take a BitIconInfo for any
external icon set (FontAwesome, Bootstrap Icons, ...).
Size
Size scales the height, text, icons and buttons together.
kg
kg
kg
Style & Class
Reach for the --bit-NumberField-* CSS variables first (listed in the API section): they inherit, so set them
on :root, an ancestor or an instance's Style. They restyle the default, not a choice: an explicit
Accent, Background, Border or Size wins over the variables for what it sets. Style/Class and
Styles/Classes (per part, plus Focused) cover the rest.
CSS variables:
cm
Style & Class:
Styles & Classes:
The description is styleable too.
RTL
Dir or a cascading BitDir.Rtl mirrors the whole field.
کیلوگرم
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.