Measured entry

hextaui-auth-recovery-codes

auth-formminimal-flat

A client-side React and TypeScript card for generating, revealing, copying, downloading, and regenerating recovery codes. It ships as a shadcn registry block and depends on React state, Lucide icons, Radix-backed alert dialog behavior, local shadcn UI primitives, Tailwind theme classes, and the local cn utility.

Specimen
Harness screenshot of hextaui-auth-recovery-codes at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-auth-recovery-codes at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-auth-recovery-codes 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-auth-recovery-codes
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal45.8 KB (111.2 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 2m 11s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/blocks/auth/auth-recovery-codes.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A capable account-security block with sensible concealment, export actions, and a confirmation step before regeneration. The empty state repeats the generate action and clipboard failures lack feedback, so expect minor product work. It needs a shadcn-style setup and is not a standalone drop-in.

Use it if

  • You need a ready-made recovery-code step for an existing two-factor authentication flow.
  • Your product should let users hide, copy, download, and regenerate codes from one compact card.
  • Your app already uses shadcn conventions and can connect the supplied callbacks to real authentication APIs.

Skip it if

  • You need the component to generate or validate recovery codes itself; it only presents codes and calls supplied handlers.
  • Your security policy forbids browser clipboard or text-file download handling for recovery secrets.
  • You need polished failure feedback for copy actions, since clipboard errors are silently ignored.
  • You want a dependency-light drop-in without local shadcn primitives, aliases, or theme tokens.

Install

Installation record for hextaui-auth-recovery-codes
Declared dependencies@radix-ui/react-alert-dialog, @radix-ui/react-slot
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 the local cn helper, configure the path alias, bring in compatible alert, alert-dialog, button, and card primitives, install the Radix alert-dialog and slot packages plus Lucide React, and provide the Tailwind theme tokens used by the classes. Wire generation and regeneration callbacks to your authentication service.

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-14

Alternatives

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