Example

PolskaPeselView
Show demo markup
<span class="polska-pesel-view" aria-label="a read-only display of Poland's PESEL">PolskaPeselView</span>
Usage example
<SummaryList>
  <SummaryListItem term="PESEL">
    <PolskaPeselView value={value} />
  </SummaryListItem>
</SummaryList>
Show Svelte source
// In your Svelte component:
import PolskaPeselView from "lily-design-system-svelte-headless/components/PolskaPeselView/PolskaPeselView.svelte";

<PolskaPeselView label="Label" value="Sample value" />

Canonical contract

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

Metadata

  • Component: polska-pesel-view
  • PascalCase: PolskaPeselView
  • Description: a read-only display of 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: <span>
  • CSS class: .polska-pesel-view
  • Interactive: no

ARIA

  • aria-label provides accessible name from label prop
  • role="text" so the identifier announces as a single unit

Keyboard

  • Not interactive

Props

  • value: string (required) — the identifier to display
  • label: string (optional) — accessible name override via aria-label
  • ...restProps: any additional HTML attributes spread onto the root