@@ -29,12 +29,14 @@ php -S localhost:8080 -t examples # Using PHP
2929### 📄 Available Example Pages
3030
3131#### 1. ** Main Interactive Demo** (` index.html ` )
32+
3233- Live customization controls
3334- Real-time preview
3435- Export functionality
3536- All basic options
3637
3738#### 2. ** Advanced Customization** (` advanced-demo.html ` )
39+
3840- 100+ QR code variations
3941- All shape combinations
4042- Gradient examples
@@ -43,18 +45,21 @@ php -S localhost:8080 -t examples # Using PHP
4345- Logo integration
4446
4547#### 3. ** Simple Usage** (` simple-usage.html ` )
48+
4649- Basic implementation
4750- Common use cases
4851- Template examples (WiFi, vCard, etc.)
4952- Copy & paste code snippets
5053
5154#### 4. ** API Documentation** (` api-docs.html ` )
55+
5256- Complete props reference
5357- Method documentation
5458- TypeScript interfaces
5559- Hook examples
5660
5761#### 5. ** Detectability Test** (` qr-test.html ` )
62+
5863- Test QR code scanning
5964- Contrast validation
6065- Real-time detectability feedback
@@ -67,18 +72,15 @@ php -S localhost:8080 -t examples # Using PHP
6772``` tsx
6873import { ReactQrCode } from ' @devmehq/react-qr-code'
6974
70- <ReactQrCode
71- value = " https://example.com"
72- size = { 256 }
73- />
75+ ;< ReactQrCode value = " https://example.com" size = {256 } / >
7476```
7577
7678### With Custom Styling
7779
7880``` tsx
7981import { AdvancedQRCode } from ' @devmehq/react-qr-code'
8082
81- <AdvancedQRCode
83+ ; < AdvancedQRCode
8284 value = " https://example.com"
8385 size = {300 }
8486 eyeShape = " rounded"
@@ -95,7 +97,7 @@ import { AdvancedQRCode } from '@devmehq/react-qr-code'
9597 bodyGradient = { {
9698 type: ' linear' ,
9799 colors: [' #667EEA' , ' #764BA2' ],
98- angle: 45
100+ angle: 45 ,
99101 }}
100102/>
101103```
@@ -116,7 +118,7 @@ import { AdvancedQRCode } from '@devmehq/react-qr-code'
116118``` tsx
117119import { AdvancedQRCode , QRHelpers } from ' @devmehq/react-qr-code'
118120
119- <AdvancedQRCode
121+ ; < AdvancedQRCode
120122 value = {QRHelpers.wifi(' NetworkName' , ' password123' , ' WPA2' )}
121123 theme=" professional"
122124/>
@@ -131,7 +133,7 @@ import { AdvancedQRCode, QRHelpers } from '@devmehq/react-qr-code'
131133 lastName: ' Doe' ,
132134 phone: ' +1234567890' ,
133135 email: ' john@example.com' ,
134- organization: ' ACME Corp'
136+ organization: ' ACME Corp' ,
135137 })}
136138 theme = " elegant"
137139/ >
@@ -142,36 +144,42 @@ import { AdvancedQRCode, QRHelpers } from '@devmehq/react-qr-code'
142144The library includes 25+ professionally designed themes:
143145
144146### Minimal & Clean
147+
145148- ` minimal ` - Clean black and white
146149- ` monochrome ` - Grayscale elegance
147150- ` elegant ` - Sophisticated style
148151- ` professional ` - Business ready
149152
150153### Colorful & Vibrant
154+
151155- ` ocean ` - Deep blue waves
152156- ` sunset ` - Warm orange/pink
153157- ` forest ` - Natural greens
154158- ` rainbow ` - Full spectrum
155159- ` aurora ` - Northern lights
156160
157161### Tech & Modern
162+
158163- ` neon ` - Bright cyber green
159164- ` cyberpunk ` - Tech noir
160165- ` retrowave ` - 80s aesthetic
161166- ` gradient ` - Modern gradients
162167
163168### Nature & Earth
169+
164170- ` earth ` - Natural browns
165171- ` nature ` - Green harmony
166172- ` ice ` - Cool blues
167173- ` fire ` - Hot reds
168174
169175### Metallic
176+
170177- ` gold ` - Luxurious gold
171178- ` silver ` - Sleek silver
172179- ` bronze ` - Warm bronze
173180
174181### Special
182+
175183- ` cosmic ` - Space theme
176184- ` pastel ` - Soft colors
177185- ` dark ` - Dark mode
@@ -181,6 +189,7 @@ The library includes 25+ professionally designed themes:
181189## 🔧 Customization Options
182190
183191### Eye (Finder Pattern) Shapes
192+
184193- ` square ` - Classic square
185194- ` circle ` - Smooth circles
186195- ` rounded ` - Rounded corners
@@ -193,6 +202,7 @@ The library includes 25+ professionally designed themes:
193202- ` cat ` - Cat eyes
194203
195204### Body (Data Module) Shapes
205+
196206- ` square ` - Traditional pixels
197207- ` circle ` - Circular dots
198208- ` rounded ` - Soft corners
@@ -213,6 +223,7 @@ The library includes 25+ professionally designed themes:
213223- ` fluid ` - Fluid design
214224
215225### Background Patterns
226+
216227- ` none ` - Solid color
217228- ` dots ` - Dot pattern
218229- ` lines ` - Line pattern
@@ -229,11 +240,13 @@ The library includes 25+ professionally designed themes:
229240## 📊 Performance Tips
230241
2312421 . ** Use Canvas for Large QR Codes**
243+
232244 ``` tsx
233245 <ReactQrCode renderAs = " canvas" size = { 512 } />
234246 ```
235247
2362482 . ** Enable Lazy Loading**
249+
237250 ``` tsx
238251 <AdvancedQRCode lazy = { true } />
239252 ```
@@ -246,24 +259,22 @@ The library includes 25+ professionally designed themes:
2462594 . ** Batch Rendering**
247260 ``` tsx
248261 // Render multiple QR codes efficiently
249- const codes = data .map (item => (
250- <AdvancedQRCode
251- key = { item .id }
252- value = { item .value }
253- lazy = { true }
254- />
262+ const codes = data .map ((item ) => (
263+ <AdvancedQRCode key = { item .id } value = { item .value } lazy = { true } />
255264 ))
256265 ```
257266
258267## 🧪 Testing Detectability
259268
260269Use the ` qr-test.html ` page to:
270+
2612711 . Test QR code scanning with real devices
2622722 . Validate contrast ratios
2632733 . Check error correction levels
2642744 . Verify logo doesn't interfere
265275
266276### Recommended Contrast Ratios
277+
267278- ** Minimum** : 3:1
268279- ** Recommended** : 7:1
269280- ** Best** : 10:1+
@@ -281,6 +292,7 @@ Use the `qr-test.html` page to:
281292## 🎯 Common Use Cases
282293
283294### Event Tickets
295+
284296``` tsx
285297<AdvancedQRCode
286298 value = { ` TICKET:${eventId }:${userId } ` }
@@ -290,15 +302,13 @@ Use the `qr-test.html` page to:
290302```
291303
292304### Product Labels
305+
293306``` tsx
294- <AdvancedQRCode
295- value = { ` PRODUCT:${sku }:${batch } ` }
296- theme = " minimal"
297- size = { 150 }
298- />
307+ <AdvancedQRCode value = { ` PRODUCT:${sku }:${batch } ` } theme = " minimal" size = { 150 } />
299308```
300309
301310### Restaurant Menus
311+
302312``` tsx
303313<AdvancedQRCode
304314 value = " https://restaurant.com/menu"
@@ -308,6 +318,7 @@ Use the `qr-test.html` page to:
308318```
309319
310320### Social Media
321+
311322``` tsx
312323<AdvancedQRCode
313324 value = { ` instagram://user?username=${username } ` }
@@ -320,4 +331,4 @@ Use the `qr-test.html` page to:
320331- [ GitHub Repository] ( https://github.com/devmehq/react-qr-code )
321332- [ NPM Package] ( https://www.npmjs.com/package/@devmehq/react-qr-code )
322333- [ Issue Tracker] ( https://github.com/devmehq/react-qr-code/issues )
323- - [ Discussions] ( https://github.com/devmehq/react-qr-code/discussions )
334+ - [ Discussions] ( https://github.com/devmehq/react-qr-code/discussions )
0 commit comments