Nigeria National Identification Number Input
NigeriaNationalIdentificationNumberInput is a headless input for entering Nigeria's National Identification Number (NIN), Nigeria's government-issued personal identifier. It renders as <input type="text"> with autocomplete="off" to protect sensitive identifiers. It is the editable companion to NigeriaNationalIdentificationNumberView.
Status: beta — implemented and unit-tested in all seven frameworks; not yet exercised in a composed flow.
Example
NigeriaNationalIdentificationNumberInput
Show demo markup
<div class="nigeria-national-identification-number-input" aria-label="an input for entering Nigeria's National Identification Number (NIN)">NigeriaNationalIdentificationNumberInput</div>
Usage example
<NigeriaNationalIdentificationNumberInput label="NigeriaNationalIdentificationNumberInput example"
>Content</NigeriaNationalIdentificationNumberInput
>
Show Svelte source
// In your Svelte component:
import NigeriaNationalIdentificationNumberInput from "lily-design-system-svelte-headless/components/NigeriaNationalIdentificationNumberInput/NigeriaNationalIdentificationNumberInput.svelte";
<NigeriaNationalIdentificationNumberInput>
<!-- content -->
</NigeriaNationalIdentificationNumberInput>
Usage
<Field
label="National Identification Number (NIN)"
required
>
<NigeriaNationalIdentificationNumberInput
label="National Identification Number (NIN)"
value="{value}"
required
/>
<Hint
>Eleven digits issued by the National Identity Management Commission (NIMC). No check-digit
algorithm is published, so only the length and digits can be checked.</Hint
>
<ErrorMessage>Please enter a valid National Identification Number (NIN)</ErrorMessage>
</Field>
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 <input>
ARIA
aria-label={label} — provides accessible name
When to Use
- Use in forms collecting Nigeria's National Identification Number (NIN).
- Use in administrative or national-id workflows where the identifier is required.
When Not to Use
- Do not use for displaying read-only identifiers — use
nigeria-national-identification-number-view instead.
- Do not use for general text input — use
text-input instead.
- Do not use for other countries' identifiers — use the corresponding country-specific input.
Headless
This headless component ships zero CSS. The consumer provides all styling targeting the .nigeria-national-identification-number-input class hook.
Testing
- Verify renders an
<input> with the correct class and type="text"
- Verify
aria-label is set from the label prop
- Verify
autocomplete="off"
- Verify value binding works
Domain Knowledge
Eleven digits issued by the National Identity Management Commission (NIMC). No check-digit algorithm is published, so only the length and digits can be checked.
Where to find it: Shown on the NIN slip and in the NIMC mobile app, and asked for when registering a SIM card, opening a bank account or applying for a passport.
Related components
nigeria-national-identification-number-view — a read-only display of Nigeria's National Identification Number (NIN)
text-input — a single-line text input field <input type="text">
References
Lily™ and Lily Design System™ are trademarks.
Implementation Notes
- Renders as
<input type="text">
- Format: Eleven digits issued by the National Identity Management Commission (NIMC). No check-digit algorithm is published, so only the length and digits can be checked.
autocomplete="off" to protect sensitive identifiers
- Supports two-way binding on the
value prop
- Companion to NigeriaNationalIdentificationNumberView
Canonical contract
Generated from this component's canonical metadata — the machine-checked source the implementations are held to.
Metadata
- Component: nigeria-national-identification-number-input
- PascalCase: NigeriaNationalIdentificationNumberInput
- Description: an input for entering Nigeria's National Identification Number (NIN)
- Status: beta — implemented and unit-tested in all seven frameworks; not yet exercised in a composed flow
- HTML tag: <input>
- CSS class: .nigeria-national-identification-number-input
- Interactive: yes
ARIA
aria-label provides accessible name from label prop required and disabled states conveyed to assistive technology
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