Currency
Currency format with thousand / decimal separators. The raw form value uses dot decimal (e.g. 1234.56).
← All examples·currency
Preview
rawValue: -
value: -
Details
- Preset:
"currency" - Defaults (US/English): precision 2, decimal '.', thousand ',', empty symbol, prefix. Digits alone are the integer part (123456 → 123,456).
- Uses the currency strategy instead of a pattern mask. Form raw always uses dot decimal (1234.56).
Customization
Turkish Lira customization
Override separators and add ₺ for TR locale.
rawValue: -
value: -
See useViraMask() for the hook API and custom mask for custom masks.
