text-mask-addon-iban
v0.1.2
Published
IBAN masks that can be used with Text Mask
Downloads
774
Maintainers
Readme
install
npm i text-mask-addon-iban
api
createIBANMask(country)
- creates mask- country: Alpha-2 country code
example (React)
// IbanInput.js
import React from 'react'
import MaskedInput from 'react-text-mask'
import createIBANMask from 'text-mask-addon-iban'
const ibanMask = createIBANMask('GB') // United Kingdom of Great Britain and Northern Ireland
export default (props) => (
<MaskedInput mask={ibanMask} {...props} />
)