Skip to content

DimaRGB/text-mask-addon-iban

Repository files navigation

install

npm i text-mask-addon-iban

api

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} />
)