Lumeo

NumberInput

A numeric input with increment/decrement buttons.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<NumberInput />

When to Use

  • Quantity selectors in shopping carts or inventory forms
  • Numeric settings such as font size, zoom level, or timeout values
  • Price inputs requiring precise decimal control
  • Any field where users should increment or decrement a number in defined steps

Value: 50 (0-100, step 5)

Step:

Precision:

Adjust the step size and decimal precision interactively.

API Reference

Property Type Default Description
Valuedouble?nullCurrent numeric value.
Mindouble?nullMinimum allowed value.
Maxdouble?nullMaximum allowed value.
Stepdouble1Increment/decrement step size.
Precisionint?nullDecimal places for display.
DisabledboolfalseDisable the input.
ValueChangedEventCallback<double?>Two-way binding callback; fires when the value changes.
Prefixstring?nullText rendered before the number (e.g., "$").
Suffixstring?nullText rendered after the number (e.g., "kg").
CultureCultureInfo?nullCulture used for parsing and formatting the number. Defaults to the current culture.
UseMouseWheelboolfalseWhen true, scrolling the mouse wheel over the input adjusts the value by Step.
RequiredboolfalseMarks the field as required. Syncs with a parent FormField.
InvalidboolfalseApplies error styling. Syncs with a parent FormField.
ErrorTextstring?nullError message displayed below the field when Invalid is true.
HelperTextstring?nullHelper text shown below the field when not invalid.
Labelstring?nullLabel rendered above the field (standalone, without FormField).
Namestring?nullHTML name attribute for form submission.
FormFieldFormField.FormFieldContext?nullCascaded context from a parent FormField; wires label, validation, and required state automatically.
  • Input — General-purpose text input for free-form values
  • Slider — Visual range selection when exact precision is less important
  • Form — Wrap NumberInput with validation and labels in form layouts