Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dm4t2/vue-currency-input
Easy input of currency formatted numbers for Vue.js.
https://github.com/dm4t2/vue-currency-input
ecma-402 input-mask vue vue-composition-api
Last synced: about 1 month ago
JSON representation
Easy input of currency formatted numbers for Vue.js.
- Host: GitHub
- URL: https://github.com/dm4t2/vue-currency-input
- Owner: dm4t2
- License: mit
- Created: 2019-01-02T20:57:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T22:53:29.000Z (7 months ago)
- Last Synced: 2024-10-30T01:02:49.458Z (2 months ago)
- Topics: ecma-402, input-mask, vue, vue-composition-api
- Language: TypeScript
- Homepage: https://dm4t2.github.io/vue-currency-input/
- Size: 2.7 MB
- Stars: 648
- Watchers: 6
- Forks: 68
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Codecov](https://codecov.io/gh/dm4t2/vue-currency-input/branch/master/graph/badge.svg)](https://codecov.io/gh/dm4t2/vue-currency-input)
[![npm Version](https://badgen.net/npm/v/vue-currency-input?color=green)](https://www.npmjs.com/package/vue-currency-input)
[![npm Downloads](https://badgen.net/npm/dw/vue-currency-input?color=green)](https://www.npmjs.com/package/vue-currency-input)
[![Bundlephobia](https://badgen.net/bundlephobia/minzip/vue-currency-input?color=green)](https://bundlephobia.com/result?p=vue-currency-input)
[![License](https://badgen.net/github/license/dm4t2/vue-currency-input?color=green)](https://github.com/dm4t2/vue-currency-input/blob/master/LICENSE)# Vue Currency Input
[![](docs/vue-currency-input.gif)](https://dm4t2.github.io/vue-currency-input)
Vue Currency Input allows an easy input of currency formatted numbers based on the [ECMAScript Internationalization API (Intl.NumberFormat)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat).
Built on top of the [Vue Composition API](https://v3.vuejs.org/guide/composition-api-introduction.html), it enables you to decorate _any_ input component with currency format capabilities.
## Features
- Turns the input component of your favorite framework (for example [Vuetify](https://vuetifyjs.com/en/components/text-fields/), [Quasar](https://quasar.dev/vue-components/input) or [Element Plus](https://element-plus.org/en-US/component/input.html)) into a currency input field
- Supports both Vue 2 _and_ Vue 3
- Built on standards: Ensures the right locale dependent formatting by using [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat)
- Unobtrusive input by hiding the formatting on focus
- Built-in value range validation## Getting started
Please read the [guide](https://dm4t2.github.io/vue-currency-input/guide) to get started or check out the [playground](https://dm4t2.github.io/vue-currency-input/playground) to see it in action.
## Support me
If you find my work helpful, or you want to support the development, star the repo or buy me a coffee:
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D6SXEA)