scopewu/qrcode.vue/qrcode-vue
Claude Code and agent skill by scopewu/qrcode.vue
- community
Checking that the SKILL.md file is still in the repository.
Generate QR codes in Vue 3 apps with the qrcode.vue component library. Use this skill whenever the user wants to render, style, or download a QR code in Vue — including QR with a logo/image, gradient or rounded modules, SVG vs canvas output, SSR/Nuxt usage, or TypeScript typing — even if they don't name the library explicitly.
Install
npx vskill@latest install scopewu/qrcode.vue/qrcode-vueSKILL.md
qrcode.vue
A Vue.js component to generate QR codes. Version 3.x targets Vue 3 only (Vue 2 apps must use qrcode.vue 1.x). Peer dependency: vue@^3.0.0. No other runtime dependencies.
Install
Exports
QrcodeVue(default) — switches between canvas and SVG via therender-asprop.QrcodeCanvas/QrcodeSvg(named) — single-renderer components. Prefer these when the renderer is fixed.
CommonJS / CDN note: exports are named since 3.5 — use require('qrcode.vue').default or QrcodeVue.default when loading the UMD bundle.
Props
All three components share these props (render-as exists only on QrcodeVue):
| Prop | Type | Default | Notes | ||||
|---|---|---|---|---|---|---|---|
value | string | '' | Required. QR content. | ||||
size | number | 100 | Element size in px. | ||||
render-as | `'canvas' \ | 'svg'` | 'canvas' | QrcodeVue only. Use 'svg' for SSR. | |||
level | `'L' \ | 'M' \ | 'Q' \ | 'H'` | 'L' | Error correction. Use 'H' when embedding a logo. | |
background | string | '#fff' | Background color. | ||||
foreground | string | '#000' | Module color (ignored when gradient is on). | ||||
margin | number | 0 | Quiet-zone width in modules, >= 0. | ||||
radius | number | 0 | Module corner radius, 0–0.5. 0.5 = circular modules. Inner corners between adjacent modules stay sharp. | ||||
gradient | boolean | false | Enable gradient fill. | ||||
gradient-type | `'linear' \ | 'radial'` | 'linear' | Gradient direction type. | |||
gradient-start-color | string | '#000' | Gradient start. | ||||
gradient-end-color | string | '#fff' | Gradient end. | ||||
image-settings | ImageSettings | {} | Embedded logo, see below. | ||||
id | string | undefined | ID base for internal SVG defs. Pass useId() (Vue 3.5+) for SSR hydration safety. |
Template ref methods
Expose toDataURL and download on all components (QrcodeVue forwards to the active renderer):
- Canvas:
toDataURL(type?, quality?),download(filename?)→ PNG. - SVG:
toDataURL(),download(filename?)→ SVG.
Recipes
QR with a centered logo — always raise level so the code stays scannable:
Gradient + rounded modules:
SSR / Nuxt — render as SVG and pass a stable id:
Pitfalls
- Vue 2: do not use 3.x — install
qrcode.vue@1.x. - Tainted canvas: with a cross-origin logo, set
imageSettings.crossOrigin: 'anonymous'and ensure the image server sendsAccess-Control-Allow-Origin, ortoDataURL/downloadthrowsSecurityError. - SSR hydration: without an explicit
id, internal SVG IDs come from a module-level counter and can mismatch between server and client. Always passuseId()under SSR. - Scannability: keep contrast high between
foreground/gradientandbackground; a logo covering too much area breaks scanning even at levelH. - Multiple instances with gradients:
idkeeps each SVG's<defs>unique; collisions cause one QR's gradient to leak into another.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/qrcode-vue/SKILL.md
Popularity
- Repository stars
- 827
- Repository forks
- 89
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scopewu/qrcode.vue/qrcode-vue)