Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Barcode

Since 0.1.0-alpha.21
Shows a value as a barcode: Code 128, EAN-13, EAN-8 or UPC-A.

IzzyBlazor.Barcode in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (7)

Valuestring requiredAdded in 0.1.0-alpha.21

What 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.Code128Added in 0.1.0-alpha.21

The kind of barcode. Defaults to BarcodeType.Code128.

BarWidthLength? (computed)Added in 0.1.0-alpha.22

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 = 50Added in 0.1.0-alpha.21

The 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 = trueAdded in 0.1.0-alpha.21

The value under the bars. On by default.

Labelstring?Added in 0.1.0-alpha.21

What the barcode is, for screen readers, such as "Tracking number": the name becomes it and the value, "Tracking number, SHIP-2026-0417".

Decorativebool = falseAdded in 0.1.0-alpha.21

Hides it from screen readers, for when the value is written beside it.

Events (0)

No events.

Types (2)

BarcodeType

enum

The kind of barcode a Barcode draws.

BarcodeType values
ValueDescription
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

struct

A width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.

Length members
MemberDescription
Sm

640px (matches the sm breakpoint).

Md

768px (matches the md breakpoint).

Lg

1024px (matches the lg breakpoint).

Xl

1280px (matches the xl breakpoint).

Prose

A comfortable reading width, 68 characters.

Full

100% of the containing block.

Auto

auto.

FitContent

fit-content: as wide as the content, up to the available space.

MinContent

min-content.

MaxContent

max-content.

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 calc(100% - 2rem). Checked for unsafe characters.

Css string

The CSS value this length renders as.

Connection lost

Rejoining the server…