Measured entry
8bitcn-input-otp
A pixel-styled one-time-code input shipped as a shadcn registry component. It wraps the standard shadcn OTP primitives and input-otp behavior, uses Tailwind classes, a cn helper, class-variance-authority, and a retro stylesheet that imports the Press Start 2P font from Google Fonts.



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 | flagged at 375 |
| Axe critical | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 34.2 KB (99.7 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 848ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-1bf41be90384/src/cut/components/ui/8bit/input-otp.tsx".
Verdict
A credible themed wrapper that builds and mounts cleanly, but it is not ready to drop into a high-stakes form unchanged. The missing label is a critical accessibility issue, and the fixed slot layout needs responsive treatment before narrow-screen use.
Use it if
- You already use shadcn aliases and want a retro OTP field that matches an arcade or pixel-themed interface.
- You can add an explicit label or accessible name and test the complete verification flow.
- Your form has enough horizontal room for fixed grouped slots and a separator.
Skip it if
- Your authentication or checkout flow must pass accessibility checks without modifying the component, because the tested control has no label.
- You need dependable fit on narrow mobile screens, because the tested demo overflows there.
- Your design system forbids remote font imports or pixel typography.
- You want a standalone input without shadcn path aliases and Tailwind conventions.
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, the base shadcn OTP primitives, Tailwind, class-variance-authority, clsx, and tailwind-merge. Recreate the cn helper and import aliases, include the retro stylesheet, and either allow its Google Fonts request or self-host a substitute.
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/TheOrcDev/8bitcn-uiAlternatives
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