Block Parts
Backup Code
A recovery code that copies itself when clicked and is crossed out once it has been used.
Usage
Click a code to copy it. Used codes are crossed out.
Installation
npm install @wunderui/reactThen import what you need:
import { BackupCode } from "@wunderui/react"API Reference
| Prop | Type | Default |
|---|---|---|
| code | string | — |
| used | boolean | — |
| onCopy | (code: string) => void | — |
| className | string | — |