The example below loads live from Storybook; open it there to use the controls.
Default
Section titled “Default”The TR prefix is fixed in the box; people type only the 24 digits. A pasted “TR33 0006 …” drops its prefix.
Type or paste the IBAN from your account document.
import { IbanInput, Provider } from '@bigbang/ui';
export default function Default() { return ( <Provider locale="en-GB"> <IbanInput label="IBAN" description="Type or paste the IBAN from your account document." className="max-w-sm" /> </Provider> );}Valid and invalid
Section titled “Valid and invalid”An IBAN that passes mod 97 gets a check mark; the sample with a changed last digit shows an error.
The sample IBAN is a published example, not a real account.
IBAN is validThis IBAN is not valid; check the digits.
import { IbanInput, Provider } from '@bigbang/ui';
export default function States() { return ( <Provider locale="en-GB"> <div className="flex max-w-sm flex-col gap-lg"> <IbanInput label="IBAN" description="The sample IBAN is a published example, not a real account." defaultValue="TR330006100519786457841326" /> <IbanInput label="IBAN" defaultValue="TR330006100519786457841327" /> </div> </Provider> );}Light and dark mode
Section titled “Light and dark mode”The box uses the same tokens as TextInput.
The sample IBAN is a published example, not a real account.
IBAN is validThis IBAN is not valid; check the digits.
The sample IBAN is a published example, not a real account.
IBAN is validThis IBAN is not valid; check the digits.
import { IbanInput, Provider } from '@bigbang/ui';
export default function States() { return ( <Provider locale="en-GB"> <div className="flex max-w-sm flex-col gap-lg"> <IbanInput label="IBAN" description="The sample IBAN is a published example, not a real account." defaultValue="TR330006100519786457841326" /> <IbanInput label="IBAN" defaultValue="TR330006100519786457841327" /> </div> </Provider> );}