Skip to content
IntelliHelper logo

Intelli UI

FormsLiquid Glass

OTP Input

One-time code slots with paste support and completion callback. Preview live, copy the source, or install with the CLI into your Next.js project.
npx @intellihelper/cli@latest add otp-input

One-time code

About this component

OTP Input is part of Forms. One-time code slots with paste support and completion callback.

Install with npx @intellihelper/cli@latest add otp-input. Files land in your project so you can customize styles, variants, and behavior without a locked package.

Prefer AI-assisted install? Use the agent plugin or the MCP server.

When to use OTP Input

Use when

  • Use OTP Input when one-time code slots with paste support and completion callback.
  • Collecting user input with labeled fields, selects, checkboxes, or dates.
  • Settings screens that need glass chrome around standard controls.

Avoid when

  • Read-only display of data — use typography or tables.
  • Complex multi-page wizards without a stepper or progress pattern.

Accessibility notes

  • Every control needs a visible label (or aria-label when space is constrained).
  • Associate helper and error text with aria-describedby.
  • Preserve focus order; do not trap keyboard users outside the form.

Interactive primitives build on accessible patterns (including Radix where applicable). Always verify focus order and contrast on your mesh or product background.

Composition tips

  • Stack field + label + description vertically with consistent spacing.
  • Use native-select only when you need zero-JS progressive enhancement.

FAQ

View all forms