1Sponsor

QR Code

Unicode block QR code generator

Terminal

Installation

pnpm dlx shadcn@latest add https://termcn.dev/r/qr-code.json

Usage

import { QRCode } from "@/components/ui/qr-code";
<QRCode value="https://termcn.dev" size="md" label="Scan to visit" />

API Reference

QRCode

PropTypeDefault
valuestringrequired
size"sm" | "md" | "lg""md"
colorstringundefined
labelstringundefined