Latvija Personas Kods Input
an input for entering Latvia's Personas kods
This is a new component. See the canonical documentation for full details.
an input for entering Latvia's Personas kods
This is a new component. See the canonical documentation for full details.
<label class="label" for="demo-input">Label</label><input class="latvija-personas-kods-input" id="demo-input" aria-label="an input for entering Latvia's Personas kods" /><Field label="Personal Code" required>
<LatvijaPersonasKodsInput label="Personal Code" value={value} required />
<Hint>11 digits in the form DDMMYY-CZZZZ where the first 6 are the date of birth (DDMMYY) and C encodes the century (0 = 19th, 1 = 20th, 2 = 21st)</Hint>
<ErrorMessage>Please enter a valid Personal Code</ErrorMessage>
</Field>
// In your Svelte component:
import LatvijaPersonasKodsInput from "lily-design-system-svelte-headless/components/LatvijaPersonasKodsInput/LatvijaPersonasKodsInput.svelte";
<LatvijaPersonasKodsInput 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