iban-format
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Props Options Default Description
ibanFormat string required here we define the iban mask that we should follow. the first two letters reprsent the country code and they are irremovable.
placeholder string empty string the placeholder
style css inline style object empty object you 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

Package Sidebar

Install

npm i iban-format

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

91.5 kB

Total Files

13

Last publish

Collaborators

  • mamina