alexisroe

QR Code

Component

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 QRCodeDemo() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-white p-10">
      <QRCode
        value={{ type: "url", url: "https://example.com" }}
        label="example.com"
        width={180}
      />
    </div>
  );
}

Dependencies

More by alexisroe

View all
  • Number Stepper

    Number Stepper

    1
  • Log

    Log

    1
  • E-Ink Code

    E-Ink Code

  • E-Ink Progress Bar

    E-Ink Progress Bar

  • Navigation

    Navigation

  • Pill

    Pill

  • Notification

    Notification

  • Value Display

    Value Display