Utility
AI
Terminal
qr-code-demo
No opentui live preview is registered for this example yet.
Installation
pnpm dlx shadcn@latest add @termcn/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 | undefined |
label | string | undefined |