Measured entry

hextaui-input-otp

inputminimal-flat

A client-side React wrapper for segmented one-time-code entry, shipped as a shadcn registry TypeScript component. It composes the input-otp package into groups, slots, and a Lucide separator, with Tailwind classes, theme tokens, and the shared cn utility handling its presentation.

Specimen
Harness screenshot of hextaui-input-otp at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-input-otp at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-input-otp at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for hextaui-input-otp
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal34.1 KB (99.6 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 910ms
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-1b4a61dae3d3/src/cut/components/ui/input-otp.tsx".

Verdict

A practical, flexible wrapper for shadcn-based verification flows, but the tested demo leaves the form control unlabeled. It is not standalone: bare mounting fails and it needs a shadcn-style setup plus the undeclared Lucide dependency.

Use it if

  • You need a controlled verification-code field with individually styled slots.
  • Your app already uses shadcn conventions, Tailwind theme tokens, and the shared cn helper.
  • You want configurable slot grouping and a reusable separator instead of a fixed code layout.

Skip it if

  • You need an accessible field out of the box and cannot add an explicit label or accessible name.
  • Your project does not use Tailwind or shadcn path aliases and you want a dependency-free drop-in.
  • A native single input is preferable to the extra behavior and icon dependencies for your code flow.

Install

Installation record for hextaui-input-otp
Declared dependenciesinput-otp, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add input-otp, lucide-react, clsx, and tailwind-merge; provide the cn utility and its import alias; configure Tailwind theme tokens and the caret animation used by the classes; and give the underlying field an explicit accessible label.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

License
MIT
Record published
2026-08-17

Alternatives

Other published entries for the input pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.