Digito (digitojs): a framework-agnostic OTP input library that renders one-time password fields across React, Vue 3, Svelte, Alpine.js, Vanilla JS, and Web Components from a single headless state machine core.
Key features:
• Single hidden-input architecture for native SMS autofill, password manager support, and full ARIA accessibility
• Web OTP API — auto-intercepts SMS codes on Android Chrome
• Built-in countdown timer, resend button, and programmatic API (setError, setSuccess, reset, focus)
• Masked mode, visual separators, and custom charset support via pattern
• Data attribute state hooks for Tailwind data-* variants
Top comments (0)