Sverige Personnummer Input
an input for entering Sweden's Personnummer
This is a new component. See the canonical documentation for full details.
an input for entering Sweden's Personnummer
This is a new component. See the canonical documentation for full details.
<label class="label" for="demo-input">Label</label><input class="sverige-personnummer-input" id="demo-input" aria-label="an input for entering Sweden's Personnummer" /><Field label="Personal Identity Number" required>
<SverigePersonnummerInput label="Personal Identity Number" value={value} required />
<Hint>12 digits in the format CCYYMMDDZZZQ: CCYYMMDD is the date of birth, ZZZ a serial (odd male, even female), and Q a Luhn check digit</Hint>
<ErrorMessage>Please enter a valid Personal Identity Number</ErrorMessage>
</Field>
// In your Svelte component:
import SverigePersonnummerInput from "lily-design-system-svelte-headless/components/SverigePersonnummerInput/SverigePersonnummerInput.svelte";
<SverigePersonnummerInput 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