tom

QR Code

Cards 451

About

QR code generator with rounded finder patterns and dot-style data modules.

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

"use client";

import { QRCode } from "@/components/ui/qr-code";

function Demo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
      <div className="rounded-3xl border bg-card p-7 shadow-2xl">
        <div className="mb-5 flex items-center justify-between gap-12">
          <div>
            <p className="text-sm text-muted-foreground">Scan to install</p>
            <h3 className="text-2xl font-semibold tracking-tight">QR Code</h3>
          </div>
          <span className="rounded-full bg-muted px-3 py-1 text-xs text-muted-foreground">
            dot modules
          </span>
        </div>
        <QRCode
          value="https://21st.dev/r/tom_ui/qr-code"
          size={268}
          fgColor="#f8fafc"
          bgColor="#020617"
          className="rounded-xl border"
        />
      </div>
    </div>
  );
}


export default { Demo };

Dependencies

More by tom

View all
  • Special Text

    Special Text

    1.1K
  • Shimmer Text

    Shimmer Text

    1.1K
  • Animated Gradient

    Animated Gradient

    963
  • Tilt Card

    Tilt Card

    875
  • Marquee

    Marquee

    778
  • Text Marquee

    Text Marquee

    751
  • Animated Checkbox

    Animated Checkbox

    384
  • Perspective Book

    Perspective Book

    326

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3