* feat: migrated the navigation metadata from inline MD title decorations to frontmatter * fix: fixed frontmatter metadate for api-table MDs * fix: fixed frontmatter eslint issue
49 lines
1.1 KiB
Markdown
49 lines
1.1 KiB
Markdown
---
|
|
parts:
|
|
- Input Iban
|
|
- Overview
|
|
title: 'Input Iban: Overview'
|
|
eleventyNavigation:
|
|
key: 'Input Iban: Overview'
|
|
order: 10
|
|
parent: Input Iban
|
|
title: Overview
|
|
---
|
|
|
|
# Input Iban: Overview
|
|
|
|
A web component based on the generic text input field.
|
|
Its purpose is to provide a way for users to fill in an IBAN (International Bank Account Number).
|
|
|
|
```js script
|
|
import { html } from '@mdjs/mdjs-preview';
|
|
import '@lion/ui/define/lion-input-iban.js';
|
|
```
|
|
|
|
```js preview-story
|
|
export const main = () => {
|
|
return html` <lion-input-iban label="Account" name="account"></lion-input-iban> `;
|
|
};
|
|
```
|
|
|
|
## Features
|
|
|
|
- Based on our [input](../input/overview.md)
|
|
- Default label in different languages
|
|
- Makes use of IBAN specific [validate](../../fundamentals/systems/form/validate.md) with corresponding error messages in different languages
|
|
- IsIBAN (default)
|
|
- IsCountryIBAN
|
|
- Parses IBANs automatically
|
|
- Formats IBANs automatically
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm i --save @lion/ui
|
|
```
|
|
|
|
```js
|
|
import { LionInputIban } from '@lion/ui/input-iban.js';
|
|
// or
|
|
import '@lion/ui/define/lion-input-amount.js';
|
|
```
|