RayCraftDocs
v1.0.3 raycraft.dev
On this page

QrCode

Free

Draws a QR code as plain SVG, with no image service or script. Text up to 2331 bytes (all 40 versions, error correction level M). The code is always dark on light so scanners read it in both themes.

Example

QrCode control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
LabelstringAccessible name; defaults to the encoded text.
MarginintEmpty border around the code, in modules (default 4).
StylestringInline style added to the root element.
ValuestringThe text to encode.

Package

QrCode is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.