IzzyBlazor.QrCode in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (6)
Valuestring requiredThe text to encode, such as a URL. Longer text makes a denser code.
Labelstring?What scanning it does, for screen readers, such as "QR code for your authenticator app".
Decorativebool = falseHides it from screen readers, for when the text beside it says what it is.
ErrorCorrectionQrErrorCorrection = QrErrorCorrection.MediumHow much of the code can be damaged and still scan. Defaults to QrErrorCorrection.Medium; a higher level is used when it fits in the same size.
SizeLength? (computed)The width and height, quiet zone included. Defaults to 10rem.
QuietZoneint = 4The light border around the code, in modules. Defaults to 4, which scanners expect.
Plus 17 item props and 4 common props.
Show them hereEvents (0)
No events.
Types (2)
Length
structA width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.
| Member | Description |
|---|---|
Sm | 640px (matches the |
Md | 768px (matches the |
Lg | 1024px (matches the |
Xl | 1280px (matches the |
Prose | A comfortable reading width, 68 characters. |
Full | 100% of the containing block. |
Auto |
|
FitContent |
|
MinContent |
|
MaxContent |
|
Px(double value) | Pixels. |
Rem(double value) | Root ems (16px each by default). |
Percent(double value) | Percent of the containing block. |
Ch(double value) | Character widths, for text measures. |
Vw(double value) | Percent of the viewport width. |
Dvh(double value) | Percent of the dynamic viewport height (accounts for mobile browser bars). |
Of(string css) | Any CSS length, such as |
Css string | The CSS value this length renders as. |
QrErrorCorrection
enumHow much of a QR code can be damaged and still read. Higher levels make a larger code.
| Value | Description |
|---|---|
Low | About 7% of the code can be lost. |
Medium | About 15% (the default). |
Quartile | About 25%. |
High | About 30%. |