Utility
Terminal
█
qr-code-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/qr-code
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 | - |
label | string | - |