vue-formulate-currency

Currency input for vue-formulate
3,649 3
Install
npm install vue-formulate-currency
Latest Version:0.1.6
Vue:2
License:MIT
Last Updated:Feb 10, 2022
Links: GitHub  ·  npm
Maintainer: ryntab

VueFormulate

Vue Formulate Currency

Vue Formulate Currency allows for better currency input formatting.

Install

npm install vue-formulate-currency

Usage

Add to your vue formulate plugins. Documentation

import Vue from 'vue'
import VueFormulate from '@braid/vue-formulate'

import FormulateVueCurrencyPlugin from 'vue-formulate-currency'

Vue.use(VueFormulate, {
    plugins: [ FormulateVueCurrencyPlugin ]
})

For Nuxt.js ♥ add the plugin to your formulate.config.js file. Documentation

Component Usage

Add the currency type to a formulate component

<FormulateInput  type="currency"/>
Prop Value Example Default Value
currencyPrefix "$" ""
emptyValue "Empty!" ""
currencySymbolPosition "prefix" "prefix" or "suffix"
placeholder "Im a placeholder!" ""
precision 0 2
separator "-" ","
outputType "string" "number"
Special Props : styling✨

The styling prop is optional and can be used to add in classes to your input. It accepts and array of classes or a string and will be combined with the formulate configuration classes set in your project.

Duplicate classes are always removed.

<FormulateInput  type="currency"  currencyPrefix="$" :styling="['border-2', 'border-blue-gray-200']"/>

or using a string...

<FormulateInput  type="currency"  currencyPrefix="$" :styling="border-2 border-blue-gray-200"/>

Related Packages

v-money

Vue currency input/directive mask

1,404,492
v-money3

Vue3 currency input/directive mask

866,680 116
vuetify-money

Money component for vuetify 2.x.

309,361 44
v-currency-field

Currency component for vuetify v-text-field

139,413 60
vue-money-mask

Vue currency input/directive mask

7,317

Version History

Version Released Vue License
0.1.6 ^2.6.14 MIT
0.1.5 ^2.6.14 MIT
0.1.4 ^2.6.14 MIT
0.1.3 ^2.6.14 MIT
0.1.1 ^2.6.14 MIT