Barcode
FreeDraws Code 128 (all printable ASCII, digits are packed in pairs), Code 39 (capitals, digits and - . $ / + % space), EAN-13, EAN-8 and UPC-A (the check digit is added, or verified when given) as plain SVG. ShowDownload adds buttons that save the barcode as SVG or PNG. Always dark on light so scanners read it in both themes.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
FileName | string | File name without extension for the download. |
Format | BarcodeFormat | Code128 (default), Code39, Ean13, Ean8 or UpcA. |
Height | int | Bar height in SVG units (default 60). |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
ShowDownload | bool | Shows buttons that save the barcode as an SVG or PNG file. |
ShowText | bool | Shows the encoded value under the bars. |
Style | string | Inline style added to the root element. |
Value | string | The text or digits to encode. |
Package
Barcode is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3