NEURALNG

INPUTNUMBER

API

The complete public contract of canonical NeuralInputNumber.

Inputs

NameTypeDefaultDescription
value number | nullnull Canonical numeric model; never localized text.
min number | undefinedundefined Minimum committed value.
max number | undefinedundefined Maximum committed value.
step number1 Positive keyboard and button increment.
mode 'decimal' | 'currency''decimal' NumberFormat presentation mode.
locale string'' Component-level locale override.
currency string'USD' ISO 4217 code in currency mode.
currencyDisplay Intl currencyDisplay'symbol' Symbol, narrowSymbol, code, or name.
prefix string'' Application-owned text before formatted value.
suffix string'' Application-owned text after formatted value.
useGrouping booleantrue Uses locale grouping separators.
minFractionDigits number | nullnull Minimum displayed fraction digits.
maxFractionDigits number | nullnull Maximum displayed fraction digits.
showButtons booleantrue Renders decrement and increment controls.
disabled booleanfalse Disables control and stepping.
readonly booleanfalse Keeps value focusable without editing.
required booleanfalse Exposes required semantics.
invalid booleanfalse Exposes application invalid state.
pending booleanfalse Exposes busy state.
touched booleanfalse External Forms state hook.
dirty booleanfalse External Forms state hook.
fluid booleanfalse Fills available width.
inputId string'' Explicit native input ID.
name string'' Native form-control name.
autocomplete string'off' Native autofill purpose.
inputMode string'decimal' Virtual keyboard hint.
placeholder string'' Native placeholder.
ariaLabel string'' Accessible name without a visible label.
incrementAriaLabel string'' Localized increment name override.
decrementAriaLabel string'' Localized decrement name override.
incrementIconClass string'' Increment Neural Icon class.
decrementIconClass string'' Decrement Neural Icon class.
unstyled booleanfalse Removes NeuralNg visual classes.
inputNumberClass string'' Consumer root class.
inputClass string'' Consumer native input class.
classes NeuralInputNumberClasses{} Typed visual slots.

Events

valueChangenumber | null

Generated model output.

valueCommitNeuralInputNumberCommit

Blur, Enter, keyboard, or button commit.

touchvoid

Native input blurred.

Methods

stepBy(direction, source)

Steps and emits a semantic commit.

commit(source)

Parses, clamps, formats, and commits the draft.

focus(options?)

Focuses the native input.

select()

Selects the editable text.

reset()

Clears value and transient parse state.

Typed class slots

rootinputdecrementButtonincrementButtonbuttonIcon

Value contract

The public value is always finite number | null. Formatted strings, currency symbols, grouping separators, prefix and suffix text never enter application state.