• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Configuration Options

The Barcode provides a set of configuration options, which enable you to fine-tune its behavior.

The following configuration settings are supported by the Barcode:

Size

To set the Barcode dimensions, use either of the following approaches:

  • Use CSS rules to set the size of the Barcode or its container.
  • Use the width and height props to set the dimensions in pixels.

If the Barcode width is insufficient for the current value and Barcode type, the component will throw an error. Always test the application with the values you expect to see in actual use.

Example
View Source
Change Theme:

Color and Background

To customize the Barcode foreground and background color, set the color and background props. You can further extend the background by specifying an optional padding.

Ensure that the chosen color combination provides adequate contrast and test it with the typical readers you intend to target.

Example
View Source
Change Theme:

Border

The Barcode can display a simple rectangular border as part of itself. You can create more complex borders by using CSS.

Example
View Source
Change Theme:

Text and Checksum

To configure the Barcode text label appearance, set the text configuration.

Optionally, set checksum to true to display the value checksum for the selected symbology.

Example
View Source
Change Theme:

See Also