NEURALNG

INPUTOTP

API

The complete public contract of NeuralInputOtp.

Inputs

NameTypeDefaultDescription
value string'' Canonical complete-code model.
length number6 Positive number of native cells.
mode 'numeric' | 'alphanumeric''numeric' Accepted character grammar.
mask booleanfalse Conceals cells; does not encrypt.
separator string'' Presentational text between cells.
autocomplete string'one-time-code' First-cell autofill purpose.
inputMode string'' Virtual keyboard override.
autoFocus booleanfalse Focuses first empty cell after render.
disabled booleanfalse Disables all native cells.
readonly booleanfalse Prevents editing while remaining focusable.
required booleanfalse Exposes required semantics.
invalid booleanfalse Exposes invalid state.
pending booleanfalse Exposes busy state.
touched / dirty booleanfalse External Forms state hooks.
name string'' Adds a hidden native form value.
inputOtpId string'' Stable group and cell ID prefix.
ariaLabel string'' Accessible group name override.
cellAriaLabel string'' Localized {current}/{total} template.
fluid booleanfalse Fills available width.
unstyled booleanfalse Removes NeuralNg visual classes.
inputOtpClass / inputClass string'' Consumer root and cell classes.
classes NeuralInputOtpClasses{} Typed visual slots.

Events

valueChangestring

Generated model output.

completeNeuralInputOtpCompleteEvent

Every cell is filled.

touchvoid

Focus leaves the complete group.

Methods

focus(options?)

Focuses the first empty cell, or the last cell.

select()

Focuses and selects the first cell.

reset()

Clears the string model.

Typed class slots

rootgroupinputseparator

Value contract

Application state is one sanitized string. Separators and masking never enter the model, and verification never belongs to the UI component.