Measured entry

8bitcn-input-otp

inputskeuomorphism

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.

Specimen
Harness screenshot of 8bitcn-input-otp at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of 8bitcn-input-otp at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of 8bitcn-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 8bitcn-input-otp
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal34.2 KB (99.7 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 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

Installation record for 8bitcn-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, 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.

License
MIT
Record published
2026-08-16

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.