Moduli v1.0.0

Input PIN

Serie di input a carattere singolo per codici di verifica e inserimento OTP. Avanza automaticamente il focus all'inserimento, supporta incolla per compilare tutti i campi e navigazione con backspace tra gli input. Combina tutti i valori in un input nascosto per l'invio del form.

Anteprima e Codice

Opzioni

Nome Tipo Predefinito Descrizione
length Integer 6 Number of input fields (e.g. 4, 6, 8)
type Symbol :numeric Input mode: :numeric or :alphanumeric
masked Boolean false Show dots instead of characters (like a password field)
separator_after Integer nil Show a dash separator after Nth input (e.g. 3 for "123-456")
label String nil Label text rendered above the inputs
hint String nil Hint text rendered below the inputs
error String nil Error message rendered below the inputs
disabled Boolean false Disables all inputs
name String nil Hidden input name for form submission (combined value)
size Symbol :md Input size: :sm, :md, or :lg

Registro delle modifiche v1.0.0

- Initial release with auto-advance, paste, and backspace navigation
- Hidden input for seamless form submission
- Optional separator dash for grouped codes (e.g. 123-456)
- Masked mode for sensitive inputs
- Three size variants: sm, md, lg
- Dark mode support

Ottieni l'Accesso Completo

Sblocca il codice sorgente di questo componente e di tutti gli altri. Un solo pagamento per l'accesso a vita.

Ottieni l'Accesso Ora