Example

Show demo markup
<label class="label" for="demo-input">Label</label><input class="polska-pesel-input" id="demo-input" aria-label="an input for entering Poland's PESEL" />
Usage example
<Field label="PESEL" required>
  <PolskaPeselInput label="PESEL" value={value} required />
  <Hint>11 numeric digits</Hint>
  <ErrorMessage>Please enter a valid PESEL</ErrorMessage>
</Field>
Show Svelte source
// In your Svelte component:
import PolskaPeselInput from "lily-design-system-svelte-headless/components/PolskaPeselInput/PolskaPeselInput.svelte";

<PolskaPeselInput label="Label" />

Canonical contract

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

Metadata

  • Component: polska-pesel-input
  • PascalCase: PolskaPeselInput
  • Description: an input for entering Poland's PESEL
  • 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: .polska-pesel-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