Components / Currency Input

Currency Input

The Navius CurrencyInput primitive in the input skin. The decimal? truth and the culture-aware formatting live in the brain: type digits, blur to format with the currency symbol and grouping. Type an amount below. This preview is the real component running in WebAssembly.

Examples

Value: 1299.50

razor
<ZitsCurrencyInput @bind-Value="_amount" Currency="USD" />

@code { private decimal? _amount = 1299.50m; }

Installation

Terminal bash
navius add currency-input

API reference

ZitsCurrencyInput:

Prop Type Default
Value decimal? null
ValueChanged EventCallback<decimal?> -
DefaultValue decimal? null
Culture CultureInfo? current
Currency string? culture
MinFractionDigits int? currency
MaxFractionDigits int? currency
AllowNegative bool false
Min / Max decimal? null
ShowSymbol bool true
Disabled / Invalid bool false