Measured entry

neobrutalism-input-otp

inputbrutalism

A client-side React OTP input assembled from the input-otp primitive, with grouped slots, an animated fake caret, and a Lucide dot separator. It ships as a shadcn registry TSX file and relies on a cn utility plus Tailwind theme tokens and a custom caret animation for its neobrutalist styling.

Specimen
Harness screenshot of neobrutalism-input-otp at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-input-otp at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-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 neobrutalism-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 1.42s
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-60b7b8241443/src/cut/components/ui/input-otp.tsx".

Verdict

A practical wrapper when input-otp and Tailwind are already part of the stack. It builds and mounts cleanly without a provider, but the supplied usage needs an accessible label before production and the visual treatment depends on project-specific theme utilities.

Use it if

  • You need a controlled verification-code field with individually styled slots.
  • Your interface already uses Tailwind and can supply the component's neobrutalist theme tokens.
  • You want grouped code digits with a visual separator and active-slot feedback.

Skip it if

  • You need a ready-made accessible field with its label included, since the tested demo leaves the form control unlabeled.
  • You do not want to adopt input-otp for focus, keyboard, and paste behavior.
  • Your design system cannot provide the custom color, radius, font, and caret-animation utilities used by the source.

Install

Installation record for neobrutalism-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 and lucide-react, provide a cn class-merging helper with its supporting packages, and recreate the Tailwind color, border, radius, font, ring, and caret-animation tokens referenced by the component. Add a visible label or an accessible name at the usage site.

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.