About
An SVG QR code that encodes a plain string or structured data like a Wi-Fi credential, contact card, or 2FA secret, with an optional caption.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds QR Code to your project and fits it to your theme.
Code
How QR Code is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { QRCode } from "@/components/ui/qrcode";
export default function QRCodeTotpDemo() {
return (
<div className="flex min-h-[320px] w-full items-center justify-center bg-white p-10">
<QRCode
value={{
type: "totp",
secret: "JBSWY3DPEHPK3PXP",
accountName: "jane@example.com",
issuer: "Acme",
}}
label="2FA setup"
width={180}
/>
</div>
);
}








