Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Account Block Backup Codes

Two-factor authentication backup codes with generation, display, download, print, and regeneration functionality for account recovery

Losing your phone shouldn't lock you out. This React backup codes panel generates one-time recovery codes for 2FA emergencies when authenticator apps are unavailable. Built with shadcn/ui Card, Badge, Button, and Alert components with Lucide React icons, users can generate 10 backup codes, copy individually or all at once, download as text file, print for safekeeping, and see which codes have been used. Clear warnings about single-use nature, regeneration confirmations, and secure storage reminders—perfect for user dashboards, account security settings, or any app with 2FA where account recovery options prevent support escalations.

Scroll to load preview

Installation

Install
Pro block

Questions you might have