Slovensko Rodne Cislo Input

an input for entering Slovakia's Rodné číslo (RČ)

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="slovensko-rodne-cislo-input" id="demo-input" aria-label="an input for entering Slovakia's Rodné číslo (RČ)" />
Usage example
<Field label="Slovak Personal Number" required>
  <SlovenskoRodneCisloInput label="Slovak Personal Number" value={value} required />
  <Hint>10 digits in the form YYMMDDCCCX where MM is 01-12 for males and 51-62 for females</Hint>
  <ErrorMessage>Please enter a valid Slovak Personal Number</ErrorMessage>
</Field>
Show Svelte source
// In your Svelte component:
import SlovenskoRodneCisloInput from "lily-design-system-svelte-headless/components/SlovenskoRodneCisloInput/SlovenskoRodneCisloInput.svelte";

<SlovenskoRodneCisloInput label="Label" />

Canonical contract

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

Metadata

  • Component: slovensko-rodne-cislo-input
  • PascalCase: SlovenskoRodneCisloInput
  • Description: an input for entering Slovakia's Rodné číslo (RČ)
  • 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: .slovensko-rodne-cislo-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