Utility
AI
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
| Prop | Type | Default |
|---|---|---|
value | string | required |
size | "sm" | "md" | "lg" | "md" |
color | string | undefined |
label | string | undefined |