View as Markdown

API reference: @salmonui/charts/barcode/pdf417

Pdf417component

import { Pdf417 } from '@salmonui/charts/barcode/pdf417';
function Pdf417(props: Pdf417Props): ReactNode;

Props: Pdf417Props

Pdf417 props (20)
NameSignatureDescription
textoptionalinheritedtext?: string | boolean;

Human-readable text under the symbol: true shows the value, a string replaces it, false hides it.

moduleSizeoptionalinheritedmoduleSize?: number;

Module (narrow bar or dot) size in px.

widthoptionalinheritedwidth?: number;

Total width in px (overrides moduleSize).

quietZoneoptionalinheritedquietZone?: boolean;

Keep the quiet zone (default true).

coloroptionalinheritedcolor?: string;

Bar color: a data color, default #000000 (scanners need dark on light in every color scheme).

valuereadonly value: string;

ISO 8859-1 text.

compactionoptionalreadonly compaction?: Pdf417Compaction | undefined;

Compaction mode (default 'auto').

errorCorrectionoptionalreadonly errorCorrection?: Pdf417ErrorCorrection | undefined;

Error correction level 0 to 8 (default 'auto': the ISO recommended minimum for the data length).

columnsoptionalreadonly columns?: number | undefined;

Data columns, 1 to 30 (default automatic, about 2:1 width to height).

rowsoptionalreadonly rows?: number | undefined;

Rows, 3 to 90 (default automatic).

compactoptionalreadonly compact?: boolean | undefined;

Compact PDF417 (no right row indicator, one-module stop bar).

rowHeightRatiooptionalreadonly rowHeightRatio?: number | undefined;

Row height in modules (default 3).

heightoptionalreadonly height?: number | undefined;

Total height in px: scales the rows.

backgroundoptionalinheritedbackground?: string;

Background color: a data color, default #ffffff.

labeloptionalinheritedlabel?: string;

Accessible name; default the encoded value.

invalidLabeloptionalinheritedinvalidLabel?: string;

Accessible name when the value cannot be encoded ({reason} is replaced). Default Invalid barcode: {reason}.

onInvalidoptionalinheritedonInvalid?: ((event: BarcodeInvalidEvent) => void);
refoptionalinheritedref?: Ref<BarcodeApi>;
classNameoptionalinheritedclassName?: string;
styleoptionalinheritedstyle?: CSSProperties;