
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
smooth-otp
Advanced tools
The SmoothOTP component is a flexible and user-friendly React component for inputting One-Time Passwords (OTPs). It supports two modes (slots and single-field), copy-pasting in the slots mode (including support for Android and iOS), and customizable styling.
Two Modes:
slots: Separate input boxes for each OTP digit.single-field: A single input box for the entire OTP.Copy-Paste Support: Allows users to paste the OTP directly into the slots mode, with the pasted value distributed across the fields automatically.
Keyboard Navigation:
Customization:
slots mode.npm install smooth-otp

import React from "react";
import { SmoothOTP } from "./SmoothOTP";
const App = () => {
const handleComplete = (otp: string) => {
console.log("Completed OTP:", otp);
};
return (
<SmoothOTP
length={6}
type="slots"
onComplete={handleComplete}
/>
);
};
export default App;
<SmoothOTP
length={4}
type="slots"
onComplete={(otp) => console.log(otp)}
className="custom-otp-container" // you can use tailwind classes here for outer layer
inputClassName="custom-otp-input" // you can use tailwind classes here for inner layer
spacing={10}
/>
This project is licensed under the MIT License.
FAQs
A fast and small OTP input component for React/Nextjs - Debraj
We found that smooth-otp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.