Measured entry
hextaui-input-otp
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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 34.1 KB (99.6 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | input-otp, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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.
Author repository
github.com/preetsuthar17/HextaUIAlternatives
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.
- clay-inputclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- neu-search-inputneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.1KB
- Bare
- pass
- Prov
- NO
- clay-search-inputclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.3KB
- Bare
- pass
- Prov
- NO
- originui-comp-33minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 20.7KB
- Bare
- pass
- Prov
- NO
- hextaui-labelminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 31.3KB
- Bare
- pass
- Prov
- NO
- ruixen-circular-stepper-inputliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 61.1KB
- Bare
- pass
- Prov
- NO