IBAN Input

an input for entering an International Bank Account Number (IBAN)

This is a new component. See the canonical documentation for full details.

Example

Show demo markup
<input class="iban-input" type="text" aria-label="IBAN" autocomplete="off" value="GB82 WEST 1234 5698 7654 32" />
Usage example
<Field
  label="IBAN"
  required
>
  <IbanInput
    label="IBAN"
    value="{value}"
    required
  />
  <Hint
    >Up to 34 letters and digits: a two-letter country code, two check digits, then the national
    account number</Hint
  >
  <ErrorMessage>Please enter a valid IBAN</ErrorMessage>
</Field>
Show Svelte source
// In your Svelte component:
import IbanInput from "lily-design-system-svelte-headless/components/IbanInput/IbanInput.svelte";

<IbanInput label="Label" />

Canonical contract

Generated from this component's canonical metadata — the machine-checked source the implementations are held to.

Metadata

  • Component: iban-input
  • PascalCase: IbanInput
  • Description: an input for entering an International Bank Account Number (IBAN)
  • Status: experimental — new, implemented and unit-tested in every headless library; not yet exercised in composed flows
  • HTML tag: <input>
  • CSS class: .iban-input
  • Interactive: yes

ARIA

  • aria-label provides accessible name from label prop
  • required and disabled states conveyed to assistive technology
  • aria-label provided from the label prop

Keyboard

  • Standard text input keyboard behavior

Props

  • label: string (required) — accessible label via aria-label
  • value: string (default: "") — bindable input value
  • required: boolean (default: false) — form validation
  • disabled: boolean (default: false) — disabled state
  • ...restProps: any additional HTML attributes spread onto the root

Markdown

This page as Markdown, for people and AI tools: iban-input.md