Imported from LilyDesignSystem/lily-design-system (
components/united-kingdom-national-insurance-number-view/AGENTS.md). Install upstream withnpx skills add LilyDesignSystem/lily-design-system --skill united-kingdom-national-insurance-number-view. Copyright stays with the author.
UnitedKingdomNationalInsuranceNumberView
Metadata
- Component: united-kingdom-national-insurance-number-view
- PascalCase: UnitedKingdomNationalInsuranceNumberView
- Description: a read-only display of United Kingdom's National Insurance Number (NINO)
- Status: beta — implemented and unit-tested in all seven frameworks with an axe-clean demo page; not yet exercised in composed flows
- HTML tag:
- CSS class: .united-kingdom-national-insurance-number-view
- Interactive: no
Key Behaviors
- Renders as
<span>with classunited-kingdom-national-insurance-number-viewandrole="text" - Format: two prefix letters, six digits, and a suffix letter (A, B, C, or D) — e.g. AB123456A; the letters D, F, I, Q, U, V and the prefix-2 letter O are excluded
- Read-only; not editable
ARIA
aria-labelprovides accessible name from label proprole="text"so the identifier announces as a single unit
Keyboard
- Not interactive
Props
value: string (required) — the identifier to displaylabel: string (optional) — accessible name override viaaria-label...restProps: any additional HTML attributes spread onto the root
Acceptance Criteria
- Renders element with class="united-kingdom-national-insurance-number-view" and role="text"
- Renders
valueas text content - WCAG 2.2 AAA compliant
- Zero CSS — fully headless
References
- Documentation: index.md
- CSS class: .united-kingdom-national-insurance-number-view in css-style-sheet-template.css
- Companion: UnitedKingdomNationalInsuranceNumberInput
- Wikipedia: https://en.wikipedia.org/wiki/National_Insurance_number