Slovenija Emso Input

an input for entering Slovenia's Enotna Matična Številka Občana (EMŠO)

This is a new component. See the canonical documentation for full details.

Example

Show demo markup
<label class="label" for="demo-input">Label</label><input class="slovenija-emso-input" id="demo-input" aria-label="an input for entering Slovenia's Enotna Matična Številka Občana (EMŠO)" />
Usage example
<Field label="Unique Master Citizen Number" required>
  <SlovenijaEmsoInput label="Unique Master Citizen Number" value={value} required />
  <Hint>13 digits: the first 7 are the date of birth (DDMMYYY), digits 8-9 the register, 10-12 a sex-and-serial component (000-499 male, 500-999 female), 13 a check digit</Hint>
  <ErrorMessage>Please enter a valid Unique Master Citizen Number</ErrorMessage>
</Field>
Show Svelte source
// In your Svelte component:
import SlovenijaEmsoInput from "lily-design-system-svelte-headless/components/SlovenijaEmsoInput/SlovenijaEmsoInput.svelte";

<SlovenijaEmsoInput label="Label" />

Canonical contract

Generated from this component's canonical metadata — the machine-checked source the implementations are held to.

Metadata

  • Component: slovenija-emso-input
  • PascalCase: SlovenijaEmsoInput
  • Description: an input for entering Slovenia's Enotna Matična Številka Občana (EMŠO)
  • Status: beta — implemented and unit-tested in all seven frameworks with an axe-clean demo page; not yet exercised in composed flows
  • HTML tag: <input>
  • CSS class: .slovenija-emso-input
  • Interactive: yes

ARIA

  • aria-label provides accessible name from label prop
  • required and disabled states conveyed to assistive technology
  • aria-label provided from the label prop

Keyboard

  • Standard text input keyboard behavior

Props

  • label: string (required) — accessible label via aria-label
  • value: string (default: "") — bindable input value
  • required: boolean (default: false) — form validation
  • disabled: boolean (default: false) — disabled state
  • ...restProps: any additional HTML attributes spread onto the root