Moduli v1.0.0

Input telefono

Input per numeri di telefono internazionali con dropdown di selezione paese, emoji bandiera e prefissi. Include una lista paesi con ricerca, formattazione automatica e un input nascosto che memorizza il valore in formato E.164 per l'invio del form.

Anteprima e Codice

Opzioni

Nome Tipo Predefinito Descrizione
name * String obbligatorio Form field name attribute (used on the hidden input for E.164 value)
value String nil Initial phone number value (digits only, without dial code)
default_country String "US" Default country code (ISO 3166-1 alpha-2)
label String nil Label text displayed above the input
placeholder String nil Placeholder text for the phone number input
required Boolean false Whether the field is required
disabled Boolean false Whether the field is disabled
size Symbol :md Input size: :sm, :md, or :lg
error String nil Error message -- turns the border red and displays below the input

Registro delle modifiche v1.0.0

- v1.0.0: Initial release with country selector, searchable dropdown, and E.164 hidden value
- 30 countries with flag emojis and dial codes
- Three size options: sm, md (default), lg
- Error and disabled states
- Full 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