Otp Underline Input
Otp Underline Input: Editorial underline OTP with serif heading and animated focus rules. Same edge-case handling as boxed — typing, delete, paste, and one-time-code autocomplete. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Otp Underline Input
npx motion-ui-skill add otp-underline-inputComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxreacttailwind-merge
Source files
Otp Underline Input
Editorial underline OTP with serif heading and animated focus rules. Same edge-case handling as boxed — typing, delete, paste, and one-time-code autocomplete.
Install
npx motion-ui-skill add otp-underline-input
Dependencies
clsxreacttailwind-merge
Usage
"use client";
import { OtpUnderlineInput } from "@/components/otp/otp-underline-input";
export function OtpUnderlineInputDemo() {
return (
<div className="flex items-center justify-center p-6">
<OtpUnderlineInput />
</div>
);
}
API Reference
OtpUnderlineInput
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |