Back to Components
Components
QR Code
Generates a QR code from a value string with configurable size and error correction.
Generating
Generating
Dependencies
- clsx
- tailwind-merge
- qrcode
Files
- components/ui/qr-code.tsx
Installation
Using shadcn CLI
npx shadcn add qr-code --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge qrcode