Cymru Rhif Y Gwasanaeth Iechyd Gwladol View

a read-only display of Wales's Rhif y Gwasanaeth Iechyd Gwladol (Rhif GIG)

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

Example

CymruRhifYGwasanaethIechydGwladolView
Show demo markup
<span class="cymru-rhif-y-gwasanaeth-iechyd-gwladol-view">CymruRhifYGwasanaethIechydGwladolView</span>
Usage example
<SummaryList>
  <SummaryListItem term="National Health Service Number">
    <CymruRhifYGwasanaethIechydGwladolView value="{value}" />
  </SummaryListItem>
</SummaryList>
Show Svelte source
// In your Svelte component:
import CymruRhifYGwasanaethIechydGwladolView from "lily-design-system-svelte-headless/components/CymruRhifYGwasanaethIechydGwladolView/CymruRhifYGwasanaethIechydGwladolView.svelte";

<CymruRhifYGwasanaethIechydGwladolView 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: cymru-rhif-y-gwasanaeth-iechyd-gwladol-view
  • PascalCase: CymruRhifYGwasanaethIechydGwladolView
  • Description: a read-only display of Wales's Rhif y Gwasanaeth Iechyd Gwladol (Rhif GIG)
  • Purpose: Shows Wales's Rhif y Gwasanaeth Iechyd Gwladol (Rhif GIG) as read-only text, so it is displayed one way wherever it appears. Use the input to collect it.
  • 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: .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view
  • Interactive: no

ARIA

  • No ARIA. A plain <span> cannot be named: aria-label is prohibited on it, and most screen readers drop it. A visible caption names the value, or the optional label renders as hidden text

Keyboard

  • Not interactive

Props

  • value: string (required) — the identifier to display
  • label: string (optional) — hidden text naming the value, in a .screen-reader-span. Leave it out when a visible caption names the value
  • ...restProps: any additional HTML attributes spread onto the root

Markdown

This page as Markdown, for people and AI tools: cymru-rhif-y-gwasanaeth-iechyd-gwladol-view.md