Belgique Numero De Registre National Input

an input for entering Belgium's Numéro de Registre National / Rijksregisternummer (NRN)

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="belgique-numero-de-registre-national-input" id="demo-input" aria-label="an input for entering Belgium's Numéro de Registre National / Rijksregisternummer (NRN)" />
Usage example
<Field label="National Register Number" required>
  <BelgiqueNumeroDeRegistreNationalInput label="National Register Number" value={value} required />
  <Hint>11 digits where the first 6 are the date of birth (YYMMDD), the next 3 are an ordering number (uneven for men, even for women) and the last 2 a check digit</Hint>
  <ErrorMessage>Please enter a valid National Register Number</ErrorMessage>
</Field>
Show Svelte source
// In your Svelte component:
import BelgiqueNumeroDeRegistreNationalInput from "lily-design-system-svelte-headless/components/BelgiqueNumeroDeRegistreNationalInput/BelgiqueNumeroDeRegistreNationalInput.svelte";

<BelgiqueNumeroDeRegistreNationalInput label="Label" />

Canonical contract

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

Metadata

  • Component: belgique-numero-de-registre-national-input
  • PascalCase: BelgiqueNumeroDeRegistreNationalInput
  • Description: an input for entering Belgium's Numéro de Registre National / Rijksregisternummer (NRN)
  • 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: .belgique-numero-de-registre-national-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