React
Modern React implementation with hooks support. Works with React 18+ and Next.js.
Zero DependenciesTypeScript ReadyProduction Ready
Getting Started
Welcome to the @intosoft/qrcode documentation for React. This powerful library allows you to generate beautiful, customizable QR codes with ease.
✨
31+ Shapes
Customize body, eyeball, and frame shapes
🎨
Full Colors
Unlimited color combinations
🖼️
Logo Support
Embed your brand logo
Installation
Install via npm
bash
Or use yarn
bash
Import in your project
tsx
Basic Usage
Simple QR Code
Generate a basic QR code with minimal configuration.
tsx
With Custom Options
Customize colors, size, and error correction level.
tsx
Complete Component Example
Full implementation ready to use in your React project.
tsx
Customization Options
🔷 Shape Options
bodyShape - 31+ optionseyeballShape - 21+ patternseyeFrameShape - 21+ designs🎨 Color Options
bodyColor - Main QR colorbgColor - BackgroundeyeballColor - Eye ballseyeFrameColor - Eye frames📐 Size Options
width - Width in pixelsheight - Height in pixels🖼️ Logo Options
logo - Logo URL or data URIlogoSize - Size 0-40%errorCorrectionLevel - L, M, Q, HAdvanced Customization Example
tsx
Advanced Features
Server-Side Rendering
Generate QR codes on the server for better performance and SEO.
tsx
Dynamic QR Codes
Update QR codes dynamically based on user input or real-time data.
tsx
Batch Generation
Generate multiple QR codes efficiently for bulk operations.
tsx
💡
Pro Tips
- • Use higher error correction levels (Q or H) when adding logos
- • Keep logo size under 30% for reliable scanning
- • Test QR codes with multiple scanning apps before deployment
- • Use contrasting colors for better readability
- • Cache generated QR codes for better performance
- • Consider using SVG format for scalability