Alba Community Health Index Input
an input for entering Scotland's Community Health Index (CHI)
This is a new component. See the canonical documentation for full details.
an input for entering Scotland's Community Health Index (CHI)
This is a new component. See the canonical documentation for full details.
<label class="label" for="demo-input">Label</label><input class="alba-community-health-index-input" id="demo-input" aria-label="an input for entering Scotland's Community Health Index (CHI)" /><Field label="Community Health Index" required>
<AlbaCommunityHealthIndexInput label="Community Health Index" value={value} required />
<Hint>10 digits encoding date of birth (DDMMYY) + two random digits + a sex digit (odd male, even female) + a Modulus-11 check digit</Hint>
<ErrorMessage>Please enter a valid Community Health Index</ErrorMessage>
</Field>
// In your Svelte component:
import AlbaCommunityHealthIndexInput from "lily-design-system-svelte-headless/components/AlbaCommunityHealthIndexInput/AlbaCommunityHealthIndexInput.svelte";
<AlbaCommunityHealthIndexInput 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