Cymru Rhif Y Gwasanaeth Iechyd Gwladol Input
an input for entering Wales's Rhif y Gwasanaeth Iechyd Gwladol (Rhif GIG)
This is a new component. See the canonical documentation for full details.
an input for entering Wales's Rhif y Gwasanaeth Iechyd Gwladol (Rhif GIG)
This is a new component. See the canonical documentation for full details.
<label class="label" for="demo-input">Label</label><input class="cymru-rhif-y-gwasanaeth-iechyd-gwladol-input" id="demo-input" aria-label="an input for entering Wales's Rhif y Gwasanaeth Iechyd Gwladol (Rhif GIG)" /><Field label="National Health Service Number" required>
<CymruRhifYGwasanaethIechydGwladolInput label="National Health Service Number" value={value} required />
<Hint>10 digits in 3-3-4 format with a Modulus-11 check digit (shared with England and the Isle of Man)</Hint>
<ErrorMessage>Please enter a valid National Health Service Number</ErrorMessage>
</Field>
// In your Svelte component:
import CymruRhifYGwasanaethIechydGwladolInput from "lily-design-system-svelte-headless/components/CymruRhifYGwasanaethIechydGwladolInput/CymruRhifYGwasanaethIechydGwladolInput.svelte";
<CymruRhifYGwasanaethIechydGwladolInput label="Label" />
Generated from this component's canonical metadata — the machine-checked source the implementations are held to.
aria-label provides accessible name from label proprequired and disabled states conveyed to assistive technologyaria-label provided from the label proplabel: string (required) — accessible label via aria-labelvalue: string (default: "") — bindable input valuerequired: boolean (default: false) — form validationdisabled: boolean (default: false) — disabled state...restProps: any additional HTML attributes spread onto the root