IbanInput
Validate CH and LI accounts and group the IBAN in fours.
alpina-ui/swiss/iban-inputSwiss or Liechtenstein IBAN
Usage notes
Use for Swiss and Liechtenstein accounts. Valid accounts are grouped on blur. Use isSwissIban and compactIban on submitted values.
When to use
Collect a Swiss account identifier on a payout form where grouping and a checksum help catch transcription errors.
When to avoid
Use a country-aware account field for payments that accept international IBANs beyond the component’s supported scope.
Accessibility
Keep the account label visible while typing. Give anyone correcting a failed checksum a concrete next step and allow pasting the entire value.
| Key | Action |
|---|---|
| Tab / Shift+Tab | Enter or leave the field. A valid identifier is formatted when focus leaves. |
| Text editing | Type, select, paste and correct the value with the platform’s editing keys. |
Content
Use IBAN in every language. Explain the expected country prefix or whose account is required in a separate short hint.
- Use
- Account IBAN · Copy it from your bank statement.
- Avoid
- Account details invalid!
Copy in four languages
- German
- IBAN des Kontos15 characters
- French
- IBAN du compte14 characters
- Italian
- IBAN del conto14 characters
- Romansh
- IBAN dal conto14 characters
npx --no-install alpina add iban-input