Alba Community Health Index View

a read-only display of Scotland's Community Health Index (CHI)

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

Example

AlbaCommunityHealthIndexView
Show demo markup
<span class="alba-community-health-index-view">AlbaCommunityHealthIndexView</span>
Usage example
<SummaryList>
  <SummaryListItem term="Community Health Index">
    <AlbaCommunityHealthIndexView value="{value}" />
  </SummaryListItem>
</SummaryList>
Show Svelte source
// In your Svelte component:
import AlbaCommunityHealthIndexView from "lily-design-system-svelte-headless/components/AlbaCommunityHealthIndexView/AlbaCommunityHealthIndexView.svelte";

<AlbaCommunityHealthIndexView 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: alba-community-health-index-view
  • PascalCase: AlbaCommunityHealthIndexView
  • Description: a read-only display of Scotland's Community Health Index (CHI)
  • Purpose: Shows Scotland's Community Health Index (CHI) 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: .alba-community-health-index-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: alba-community-health-index-view.md