Components › Forms & input › Text field › Amount input

Amount input

canon

Amount or count typed as a mask: digits and separators only, thousands grouped as you type, a dot read by context (12.345 = thousands, 12.5 = decimal), nothing typed is ever cut off silently.

Merged to origin/main 28 September 2026 (acrm MR !4089). Replaces raw <input type="number"> for amounts on 16 app surfaces (advances, benefits, expenses, KPI, costs, documents, pricing, assets, budgets, vehicles, cash desk, orders, phones). Raw value contract -?\d*(\.\d*)? unchanged for hosts. Dot rule and no-silent-truncation per AD 28 Sep 2026; caret anchoring after the decimal comma fixed in number-core (caretInFormatted), shared with RecordRail. Canon 28 Sep 2026 (AD approved M3; /ds renders the stories from the main build).

Used in 12 files · 9 areas · 13× — components/clen-tymu, components/dialog, components/org, components/products, pages/OrderDetailPage, pages/PokladnaDetailPage …

Default

components--amount-input--defaultOpen standalone ↗Code

Variants

with unit — quiet suffix
whole numbers — decimals = 0 (KPI counts)
negative allowed (corrections)
components--amount-input--variantsOpen standalone ↗Code

States

empty
grouped thousands, decimal comma
invalid (host decides, e.g. over budget)
disabled
components--amount-input--statesOpen standalone ↗Code

Composition

components--amount-input--compositionOpen standalone ↗Code