England National Health Service Number View

a read-only display of England's National Health Service Number (NHS)

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

Example

EnglandNationalHealthServiceNumberView
Show demo markup
<span class="england-national-health-service-number-view" aria-label="a read-only display of England's National Health Service Number (NHS)">EnglandNationalHealthServiceNumberView</span>
Usage example
<SummaryList>
  <SummaryListItem term="National Health Service Number">
    <EnglandNationalHealthServiceNumberView value={value} />
  </SummaryListItem>
</SummaryList>
Show Svelte source
// In your Svelte component:
import EnglandNationalHealthServiceNumberView from "lily-design-system-svelte-headless/components/EnglandNationalHealthServiceNumberView/EnglandNationalHealthServiceNumberView.svelte";

<EnglandNationalHealthServiceNumberView 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: england-national-health-service-number-view
  • PascalCase: EnglandNationalHealthServiceNumberView
  • Description: a read-only display of England's National Health Service Number (NHS)
  • 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: .england-national-health-service-number-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