# Gs1DataBarProps (@salmonui/charts/barcode/gs1-databar)

> The Gs1DataBarProps interface of @salmonui/charts/barcode/gs1-databar.

Canonical: https://salmonui.dev/docs/reference/charts/barcode-gs1-databar/Gs1DataBarProps

```ts
import type { Gs1DataBarProps } from '@salmonui/charts/barcode/gs1-databar';
```

Entry index: https://salmonui.dev/docs/reference/charts/barcode-gs1-databar (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/barcode-gs1-databar.md).

## Reference

Kind: interface

```ts
interface Gs1DataBarProps extends SymbolBaseProps {
    readonly value: string;
    readonly variant?: Gs1DataBarVariant | undefined;
    readonly segmentsPerRow?: number | undefined;
    readonly height?: number | undefined;
}
```

Members (16):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `text` | `text?: string \| boolean;` | optional, inherited | Human-readable text under the symbol: `true` shows the value, a string replaces it, `false` hides it. |
| `value` | `readonly value: string;` |  | A GTIN (13 or 14 digits) or, for Expanded, a GS1 element string `(01)…(3202)…`. |
| `variant` | `readonly variant?: Gs1DataBarVariant \| undefined;` | optional | Default `'omnidirectional'`. |
| `segmentsPerRow` | `readonly segmentsPerRow?: number \| undefined;` | optional | Expanded Stacked: segments (symbol characters) per row, even, 2 to 22 (default 4). |
| `height` | `readonly height?: number \| undefined;` | optional | Total height in px: scales the rows. |
| `moduleSize` | `moduleSize?: number;` | optional, inherited | Module (narrow bar or dot) size in px. |
| `width` | `width?: number;` | optional, inherited | Total width in px (overrides `moduleSize`). |
| `quietZone` | `quietZone?: boolean;` | optional, inherited | Keep the quiet zone (default true). |
| `color` | `color?: string;` | optional, inherited | Bar color: a data color, default `#000000` (scanners need dark on light in every color scheme). |
| `background` | `background?: string;` | optional, inherited | Background color: a data color, default `#ffffff`. |
| `label` | `label?: string;` | optional, inherited | Accessible name; default the encoded value. |
| `invalidLabel` | `invalidLabel?: string;` | optional, inherited | Accessible name when the value cannot be encoded (`{reason}` is replaced). Default `Invalid barcode: {reason}`. |
| `onInvalid` | `onInvalid?: ((event: BarcodeInvalidEvent) => void);` | optional, inherited |  |
| `ref` | `ref?: Ref<BarcodeApi>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
