/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { BaseBarcodeProps } from './BaseBarcodeProps'; import { BarcodeText, BarcodeType, Border, Padding } from './types'; /** * Represents the props of the [KendoReact Barcode component](https://www.telerik.com/kendo-react-ui/components/barcodes/barcode). */ export interface BarcodeProps extends BaseBarcodeProps { /** * Sets the background color of the Barcode. Accepts a valid CSS color string, including hex and rgb. * * @default "white" * @example * */ background?: string; /** * Sets the border of the Barcode. Accepts an object implementing the `Border` interface. * * @example * */ border?: Border; /** * Shows or hides the checksum digit next to the value in the text area. * * @default false * @example * */ checksum?: boolean; /** * Sets the color of the Barcode. Accepts a valid CSS color string, including hex and rgb. * * @default "black" * @example * */ color?: string; /** * Sets the height of the Barcode in pixels. * You can also set the Barcode dimensions through regular CSS styling. * * @example * */ height?: number; /** * Sets the padding of the Barcode. Accepts a numeric value or an object implementing the `Padding` interface. * * @default 0 * @example * */ padding?: Padding | number; /** * Sets the text label configuration of the Barcode. Accepts an object implementing the `BarcodeText` interface. * * @example * */ text?: BarcodeText; /** * Sets the symbology (encoding) that the Barcode will use. Accepts a value of type `BarcodeType` or a custom string. * * @default "Code39" * @example * */ type: BarcodeType | string; /** * Sets the value of the Barcode. Accepts a string or a number. * * @example * */ value: number | string; /** * Sets the width of the Barcode in pixels. * You can also set the Barcode dimensions through regular CSS styling. * * @example * */ width?: number; }