An input component for entering one-time password.
Your project should use TypeScript and Tailwind CSS. Frontend framework (like React.js or Vue.js) doesn't matter.
You should directly copy this file to your source code directory and use.
import { renderOTPInput } from 'OTPInput.ts';
const el = document.getElementById('otp-input-container');
const api = renderOTPInput(el, { size: 4 });
api.focus();