Nederland Paspoort Nummer Input

an input for entering Netherlands's Paspoort Nummer

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

Example

Show demo markup
<label class="label" for="demo-input">Label</label><input class="nederland-paspoort-nummer-input" id="demo-input" aria-label="an input for entering Netherlands's Paspoort Nummer" />
Usage example
<Field label="Dutch Passport Number" required>
  <NederlandPaspoortNummerInput label="Dutch Passport Number" value={value} required />
  <Hint>9 characters: positions 1-2 [A-Z] except 'O', positions 3-8 [A-Z 0-9] except 'O', position 9 [0-9]</Hint>
  <ErrorMessage>Please enter a valid Dutch Passport Number</ErrorMessage>
</Field>
Show Svelte source
// In your Svelte component:
import NederlandPaspoortNummerInput from "lily-design-system-svelte-headless/components/NederlandPaspoortNummerInput/NederlandPaspoortNummerInput.svelte";

<NederlandPaspoortNummerInput label="Label" />

Canonical contract

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

Metadata

  • Component: nederland-paspoort-nummer-input
  • PascalCase: NederlandPaspoortNummerInput
  • Description: an input for entering Netherlands's Paspoort Nummer
  • Status: beta — implemented and unit-tested in all seven frameworks with an axe-clean demo page; not yet exercised in composed flows
  • HTML tag: <input>
  • CSS class: .nederland-paspoort-nummer-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