Library
otp-input-kit
A customizable, framework-agnostic OTP input library in pure vanilla JS (~17 KB) with full RTL & i18n, WCAG 2.1 AA accessibility, and React / Vue / Svelte / Angular adapters.
What makes it good
- 1Zero-dependency vanilla JS core (~17 KB gzipped) with 10 built-in themes
- 2Full RTL & i18n: 12+ locales and 8 numeral systems, WCAG 2.1 AA accessible
- 3Form-associated <otp-input> Web Component plus React, Vue, Svelte and Angular adapters
- 4Async verification with secure masking, brute-force lockout, timer and resend