Barcode
Since 0.1.0-alpha.21IzzyBlazor.Barcode in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (7)
Valuestring requiredWhat to encode: any ASCII text for BarcodeType.Code128; the digits for EAN and UPC, with or without the check digit (added when it's left off, checked when it's there). Empty renders nothing; a value the type can't encode throws an ArgumentException.
TypeBarcodeType = BarcodeType.Code128The kind of barcode. Defaults to BarcodeType.Code128.
BarWidthLength? (computed)The width of the narrowest bar; the barcode is as wide as its bars need. Defaults to 2px; for print, Length.Of("0.33mm").
BarHeightint = 50The bars' height, in widths of the narrowest bar, so the barcode scales as one. Defaults to 50; a full-height EAN-13 is about 69.
ShowTextbool = trueThe value under the bars. On by default.
Labelstring?What the barcode is, for screen readers, such as "Tracking number": the name becomes it and the value, "Tracking number, SHIP-2026-0417".
Decorativebool = falseHides it from screen readers, for when the value is written beside it.
Plus 17 item props and 4 common props.
Show them hereEvents (0)
No events.
Types (2)
BarcodeType
enumThe kind of barcode a Barcode draws.
| Value | Description |
|---|---|
Code128 | Code 128: any ASCII text, such as a shipping or order number (the default). Digits are packed two to a symbol. |
Ean13 | EAN-13: 13 digits, on retail products; 12 get their check digit added. |
Ean8 | EAN-8: 8 digits, on small products; 7 get their check digit added. |
UpcA | UPC-A: 12 digits, on retail products in North America; 11 get their check digit added. |
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. |