lion/packages/input-iban/README.md
Thomas Allmer ec8da8f12c feat: release inital public lion version
Co-authored-by: Mikhail Bashkirov <mikhail.bashkirov@ing.com>
Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
Co-authored-by: Joren Broekema <joren.broekema@ing.com>
Co-authored-by: Gerjan van Geest <gerjan.van.geest@ing.com>
Co-authored-by: Erik Kroes <erik.kroes@ing.com>
Co-authored-by: Lars den Bakker <lars.den.bakker@ing.com>
2019-04-26 10:37:57 +02:00

35 lines
791 B
Markdown

# Input IBAN
[//]: # (AUTO INSERT HEADER PREPUBLISH)
`lion-input-iban` component is based on the generic text input field. Its purpose is to provide a way for users to fill in an iban.
## Features
- based on [lion-input](../input)
- default label in different languages
- makes use of IBAN specific [validate](../validate) with corresponding error messages in different languages
- isIBAN (default)
- isCountryIBAN
## How to use
### Installation
```
npm i --save @lion/input-amount
```
```js
import '@lion/input-amount/lion-input-amount.js';
// validator import example
import { isCountryIBANValidator } from '@lion/validate';
```
### Example
```html
<lion-input-iban
name="account"
.errorValidators="${[['required'], isCountryIBANValidator('BE')]}"
></lion-input-iban>
```