Utilities
useNumberFormat
Formats and parses numbers for a locale with the same options, so typed text and its formatted display always match. Use it for your own number fields, or to give AnimatedNumber the same format.
Formats and parses numbers for a locale, with both directions kept in sync. format turns a number into the localized display string, including any affixes. parse turns typed text back into a number, or null if the text is incomplete or invalid. isPartial tells valid in-progress input ('', '-', '1.') apart from invalid text, so you don't reject input mid-typing. InputNumber uses it for its currency, percent and decimal modes.
Install
import { useNumberFormat } from 'vael-ui'