Skip to content

IBAN Input

Pro

A field for a bank account number (IBAN). It groups the characters in fours, shows the flag and country, and checks the length and check digits.

  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

IBAN Input needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
29
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Import IBAN Input and compose its parts.

iban-input.tsx

IbanInput

<div>
PropTypeDefaultDescription
classNamestring—
rounded"default""full""default"
size"default""lg""sm""xs""default"
variant"dashed""default"—
disabledbooleanfalseTurns the control off; the frame fades to 50% with it (the Base UI name).
readOnlybooleanfalseThe IBAN shows and can be copied, but not changed (the Base UI name).
valuestring—The shown IBAN (controlled). A compact one shows in groups of four.
defaultValuestring""The first shown IBAN (uncontrolled).
onValueChange—Runs on every change with the text, the compact IBAN, the checks, and the country.
localestring—The language of the country name. Default: the display locale (en-US unless a provider sets one).
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

IbanInputCountry

<div>
PropTypeDefaultDescription
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

IbanInputFlag

<div>
PropTypeDefaultDescription
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

IbanInputControl

<div>
PropTypeDefaultDescription
classNamestring—
guideboolean—The ghost guide of the slots still to fill, while the input has focus. Default true.
rawNamestring—Also submit the raw value under this name (a hidden input), next to the shown one.
rejectFeedbackboolean—Nudge the field 2px when the mask rejects a key. Default true.
onReject—Runs when the mask rejects a key (a letter in a number, a 13th month).
refRef<HTMLInputElement>—
rounded"default""full"—
size"default""lg""sm""xs"—
...props<div> attributes—Every other attribute goes to the <div>.
  • Use it for a bank account in a country that uses IBANs (most of Europe, the Middle East, and others).
  • Check it in a Field with iban().complete and iban().valid from lib/masks.
  • Add IbanInputCountry to name the country next to the IBAN.

It is a native input, in a Field for the label, the help text, and the error.

The flag is decorative. IbanInputCountry says the country in text.

Flag
popup · 150ms · ease-panel (0.2, 0.4, 0.2, 1) · a new flag fades in and scales from 90% when the country changes
Rejected key
indicator · the frame moves 2px to each side and back when the mask rejects a key

Built with

Installs with IBAN Input

  1. AddedIBAN Input, with Country Flag, Input Group, Masked Input.
Open the release