Input Otp

Input Otp: Segmented one-time password input with slot carets and automatic focus advance. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Input Otp

npx motion-ui-skill add input-otp

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • input-otp
  • lucide-react
  • react
  • tailwind-merge

Source files

Input Otp

Component from Motion UI: input-otp

Install

npx motion-ui-skill add input-otp

Dependencies

  • clsx
  • input-otp
  • lucide-react
  • react
  • tailwind-merge

Usage

"use client";

import InputOtp from "@/components/craft/input-otp";

export function Example() {
  return (
    <div className="p-6">
      <InputOtp />
    </div>
  );
}

Browse this category