0.1.3 • Published 2 years ago

iban-format v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

iban-format

React component to format an iban (International Bank Account Number)

Usage

ES6

import IbanInput from 'iban-format';

ES5

const IbanInput = require('iban-format');

Props

PropsOptionsDefaultDescription
ibanFormatstringrequiredhere we define the iban mask that we should follow. the first two letters reprsent the country code and they are irremovable.
placeholderstringempty stringthe placeholder
stylecss inline style objectempty objectyou can use it to style the component container

Example

import IbanInput from 'iban-format';

<IbanInput
  ibanFormat="GBXX XXXX XXXX XXXX XXXX XX"
  placeholder="iban input field"
/>;

Notes

License

MIT