---
title: "Otp Underline Input | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/otp-underline-input"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/otp/otp-underline-input.tsx"
install_command: "npx motion-ui-skill add otp-underline-input"
dependencies: ["clsx","react","tailwind-merge"]
category: "craft"
subcategory: "otp"
---

# 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

```bash
npx motion-ui-skill add otp-underline-input
```

## Dependencies

- `clsx`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/otp/otp-underline-input.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/otp/otp-underline-input.tsx)
- [lib/cn.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/cn.ts)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
