API reference: @salmonui/charts/barcode/gs1-databar
Gs1DataBarcomponent
import { Gs1DataBar } from '@salmonui/charts/barcode/gs1-databar';function Gs1DataBar(props: Gs1DataBarProps): ReactNode;
Props: Gs1DataBarProps
| Name | Signature | Description |
|---|---|---|
textoptionalinherited | text?: string | boolean; | Human-readable text under the symbol: |
value | readonly value: string; | A GTIN (13 or 14 digits) or, for Expanded, a GS1 element string |
variantoptional | readonly variant?: Gs1DataBarVariant | undefined; | Default |
segmentsPerRowoptional | readonly segmentsPerRow?: number | undefined; | Expanded Stacked: segments (symbol characters) per row, even, 2 to 22 (default 4). |
heightoptional | readonly height?: number | undefined; | Total height in px: scales the rows. |
moduleSizeoptionalinherited | moduleSize?: number; | Module (narrow bar or dot) size in px. |
widthoptionalinherited | width?: number; | Total width in px (overrides |
quietZoneoptionalinherited | quietZone?: boolean; | Keep the quiet zone (default true). |
coloroptionalinherited | color?: string; | Bar color: a data color, default |
backgroundoptionalinherited | background?: string; | Background color: a data color, default |
labeloptionalinherited | label?: string; | Accessible name; default the encoded value. |
invalidLabeloptionalinherited | invalidLabel?: string; | Accessible name when the value cannot be encoded ( |
onInvalidoptionalinherited | onInvalid?: ((event: BarcodeInvalidEvent) => void); | |
refoptionalinherited | ref?: Ref<BarcodeApi>; | |
classNameoptionalinherited | className?: string; | |
styleoptionalinherited | style?: CSSProperties; |