https://github.com/lostbeard/spawndev.blazor.qrcoderenderer
Blazor QRCode renderer based on QRCoder
https://github.com/lostbeard/spawndev.blazor.qrcoderenderer
blazor csharp dotnet qrcode
Last synced: about 1 year ago
JSON representation
Blazor QRCode renderer based on QRCoder
- Host: GitHub
- URL: https://github.com/lostbeard/spawndev.blazor.qrcoderenderer
- Owner: LostBeard
- License: mit
- Created: 2024-03-25T19:14:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T12:49:43.000Z (about 2 years ago)
- Last Synced: 2025-05-08T18:50:58.095Z (about 1 year ago)
- Topics: blazor, csharp, dotnet, qrcode
- Language: C#
- Homepage: https://lostbeard.github.io/SpawnDev.Blazor.QRCodeRenderer/
- Size: 3.75 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# SpawnDev.Blazor.QRCodeRenderer
[](https://www.nuget.org/packages/SpawnDev.Blazor.QRCodeRenderer)
[Live Demo](https://lostbeard.github.io/SpawnDev.Blazor.QRCodeRenderer/)
SpawnDev.Blazor.QRCodeRenderer is a pure C# QRCode renderer for Blazor based on the awesome [QRCoder](https://github.com/codebude/QRCoder) project.
### No Dependencies
The QRCode is generated in pure C# without any dependencies.
### Getting started
Add SpawnDev.Blazor.QRCodeRenderer Nuget package to your Blazor project
### How to use
Image QRCode renderer
```html
```
SVG QRCode renderer
```html
```
## QRCodeImage Parameters
#### DataText ```(optional)```
- string - Text data that will be used for the QRCode if not null
#### DataBytes ```(optional)```
- byte[] - Binary data that will be used for the QRCode if not null
#### DataTextType ```(optional)```
- DataTextType - DataTextType indicates how DataText should be processed before rendering
#### Style ```(optional)```
- string - Style to apply to the img/svg element
#### ECCLevel ```(optional)```
- ECCLevel - Error Correction Level
#### PixelsPerModule ```(optional)```
- int - The pixel size each b/w module is drawn
#### DrawQuietZones ```(optional)```
- bool - If true a white border is drawn around the whole QR Code
#### DarkColor ```(optional)```
- string - The color of the dark/black modules in html notation
#### LightColor ```(optional)```
- string - The color of the light/white modules in html notation
#### AutoUpdateUriRelativeUrls ```(optional)```
- bool - If true (default) a DataTextType.UriRelativeUrl DataText URL will automatically be updated when a NavigationManager.LocationChanged event fires
#### QRRenderMode ```(optional)```
- QRRenderMode - The mode to use when rendering the QRCode