The Vue Currency Input plugin allows an easy input of currency formatted numbers. It provides both a standalone component (<currency-input>
) and a custom Vue directive (v-currency
) for decorating existing input components with currency format capabilities.
Read the guide to getting started or check out the examples to see it in action.
Only ~3 kB bundle size (minified + gzipped) and zero dependencies.
Numbers are formatted immediately during input.
Language-dependent, ISO-compliant currency formatting using the native Intl.NumberFormat.
Automatically insert the decimal symbol and use the last inputted digits as decimal digits.
Automatically hide the formatting and negligible decimal digits on focus.
If you find this plugin helpful or you want to support the development, buy me a coffee: