Back to Components
Components

QR Code

Generates a QR code from a value string with configurable size and error correction.

Dependencies

  • clsx
  • tailwind-merge
  • qrcode

Files

  • components/ui/qr-code.tsx

Installation

Using shadcn CLI

npx shadcn add qr-code --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge qrcode