Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
syncfusion avatar

Syncfusion React Barcode

  • 443 installs
  • 3 repo stars
  • Updated July 28, 2026
  • syncfusion/react-ui-components-skills

syncfusion-react-barcode is a Syncfusion Agent Skill that teaches coding assistants to generate, customize, and export 1D and 2D barcodes in React using @syncfusion/ej2-react-barcode-generator for developers who need pro

About

syncfusion-react-barcode is a Syncfusion Agent Skill (metadata version 33.1.44) that documents three React generators—BarcodeGeneratorComponent for Code39, Code128, Code11, Code32, Code93, and Codabar, QRCodeGeneratorComponent, and DataMatrixGeneratorComponent—with props, styling, exportImage, and exportAsBase64Image workflows plus six reference guides from getting started through export. Install the pack with npx skills add syncfusion/react-ui-components-skills; the skill auto-loads when agents implement retail SKUs, inventory labels, QR landing links, or printable barcode assets in React admin or logistics UIs. The playbook enforces correct imports from @syncfusion/ej2-react-barcode-generator, dimension props, and PNG or base64 export patterns agents often hallucinate. With 250 catalog installs, syncfusion-react-barcode targets frontend engineers standardizing Syncfusion barcode code across Cursor, Claude Code, and Copilot-style assistants.

  • syncfusion-react-barcode

Syncfusion React Barcode by the numbers

  • 443 all-time installs (skills.sh)
  • +52 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #983 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-barcode

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs443
repo stars3
Last updatedJuly 28, 2026
Repositorysyncfusion/react-ui-components-skills

How do you add Syncfusion barcodes in React?

Use syncfusion-react-barcode for development tasks

Who is it for?

Frontend developers building React inventory, retail, or logistics screens that must render Syncfusion barcodes with official APIs.

Skip if: Developers who only need a free standalone barcode library without Syncfusion licensing or the ej2-react-barcode-generator package.

When should I use this skill?

The user asks to generate Code128, QR, Data Matrix, or exportable barcode components in a React or Syncfusion project.

What you get

React TSX using Syncfusion barcode generators with correct imports, styling props, and exported PNG or base64 barcode images.

  • BarcodeGeneratorComponent TSX
  • Exported PNG or base64 barcode assets

By the numbers

  • Skill metadata version 33.1.44
  • Documents 3 Syncfusion React barcode generator components
  • Includes 6 reference guides under the barcode skill

Files

SKILL.mdMarkdownGitHub ↗

Implementing Syncfusion React Barcode

When to Use This Skill

Use this skill when you need to:

  • Generate barcodes (Code39, Code128, Code11, Code32, Code93, Codabar) in React
  • Create QR codes for URLs, contact info, or product identification
  • Generate Data Matrix codes for labels, tracking, or inventory
  • Customize barcode appearance (size, color, text display)
  • Export barcodes as images (JPG, PNG) or base64 strings
  • Integrate barcode generation into forms, reports, or applications

Library Overview: Three Generator Types

Syncfusion React Barcode provides three main components:

1. BarcodeGeneratorComponent - Traditional 1D barcodes (Code39, Code128, etc.)

  • Character encoding varies by type
  • Ideal for: Product codes, inventory, retail
  • Readability: High, works with basic scanners

2. QRCodeGeneratorComponent - 2D Quick Response codes

  • Versions 1-40 with automatic scaling
  • Ideal for: URLs, contact info, product links, advertising
  • Capacity: Up to thousands of characters

3. DataMatrixGeneratorComponent - 2D Data Matrix codes

  • Square/rectangular format, compact size
  • Ideal for: Labels, parts tracking, aerospace/automotive
  • Capacity: Alphanumeric data, efficient encoding

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and dependencies
  • Vite/React setup
  • Component imports and basic structure
  • Parent component initialization

Barcode Generator Types

📄 Read: references/barcode-generator.md

  • Code39, Code39Extended, Code11, Code128, Code32, Code93, Codabar
  • When to use each type
  • Character set support per type
  • Encoding and checksum information
  • Implementation examples for each

QR Code Generator

📄 Read: references/qr-code-generator.md

  • QR Code basics and versions
  • Automatic version selection
  • Character encoding (numeric, alphanumeric, JIS8)
  • Common use cases and patterns
  • Implementation with different data types

Data Matrix Generator

📄 Read: references/data-matrix-generator.md

  • Data Matrix basics and structure
  • Encoding rules and character support
  • Size and capacity considerations
  • Label and printing applications
  • Comparison with other barcode types

Customization and Styling

📄 Read: references/customization.md

  • Barcode dimensions (width, height)
  • Colors (foreColor, backgroundColor)
  • Display text customization
  • Examples of size and color variations
  • Responsive design patterns

Export and Integration

📄 Read: references/export-and-integration.md

  • Export as image (JPG, PNG)
  • Export as base64 string
  • Method: exportImage(filename, format)
  • Method: exportAsBase64Image(format)
  • Integration with forms, APIs, and reports

Quick Start Examples

Code39 Barcode

import React from 'react';
import { BarcodeGeneratorComponent } from '@syncfusion/ej2-react-barcode-generator';

export default function App() {
  return (
    <BarcodeGeneratorComponent
      id="barcode"
      type="Code39"
      value="SYNCFUSION"
      width="200px"
      height="150px"
    />
  );
}

QR Code

import React from 'react';
import { QRCodeGeneratorComponent } from '@syncfusion/ej2-react-barcode-generator';

export default function App() {
  return (
    <QRCodeGeneratorComponent
      id="qrcode"
      value="https://www.syncfusion.com"
      width="200px"
      height="200px"
    />
  );
}

Data Matrix

import React from 'react';
import { DataMatrixGeneratorComponent } from '@syncfusion/ej2-react-barcode-generator';

export default function App() {
  return (
    <DataMatrixGeneratorComponent
      id="datamatrix"
      value="Syncfusion"
      width="200px"
      height="200px"
    />
  );
}

Common Patterns

Pattern 1: Dynamic Value Generation

const [barcodeValue, setBarcodeValue] = React.useState('DEFAULT123');

<BarcodeGeneratorComponent
  type="Code128"
  value={barcodeValue}
  width="200px"
  height="150px"
/>

Pattern 2: Export on Button Click

const barcodeRef = React.useRef();

const handleExport = () => {
  barcodeRef.current.exportImage('barcode', 'PNG');
};

<div>
  <BarcodeGeneratorComponent
    ref={barcodeRef}
    type="Code39"
    value="SYNC123"
    width="200px"
    height="150px"
  />
  <button onClick={handleExport}>Download Barcode</button>
</div>

Pattern 3: Styled Container

<div style={{ padding: '20px', border: '1px solid #ddd' }}>
  <QRCodeGeneratorComponent
    value="https://example.com"
    width="250px"
    height="250px"
    foreColor="#333"
    backgroundColor="#fff"
  />
</div>

Key Props

PropDescriptionUsed By
typeBarcode type (Code39, Code128, Code11, Code32, Code93, Codabar)BarcodeGeneratorComponent
valueData to encodeAll generators
widthBarcode width (string with px)All generators
heightBarcode height (string with px)All generators
foreColorDark/bar colorAll generators
backgroundColorLight/space colorAll generators
displayTextObject to customize display textAll generators
idUnique component identifier (required for export)All generators

Common Use Cases

1. Retail & Inventory: Code128 barcodes for products and SKUs 2. E-commerce: QR codes linking to product pages or reviews 3. Logistics: Data Matrix for package tracking and labels 4. Document Management: QR codes embedding document metadata 5. Marketing: Dynamic QR codes with analytics 6. Healthcare: Code128/Code39 for specimen/patient labeling 7. Form Workflows: Export barcodes for printing or archival

Next Steps

1. Choose your generator type based on use case 2. Read the getting started guide 3. Review the specific generator documentation 4. Customize appearance as needed 5. Implement export if required for your workflow

Related skills

How it compares

Pick syncfusion-react-barcode over generic React UI skills when the stack already uses Syncfusion ej2 and agents must follow official barcode APIs.

FAQ

What barcode types does syncfusion-react-barcode cover?

syncfusion-react-barcode documents BarcodeGeneratorComponent types Code39, Code39Extended, Code11, Code128, Code32, Code93, and Codabar, plus QRCodeGeneratorComponent and DataMatrixGeneratorComponent for 2D codes in React.

How do you install syncfusion-react-barcode for an AI agent?

Run npx skills add syncfusion/react-ui-components-skills in the project root. syncfusion-react-barcode is one component skill in that pack and loads when agents need Syncfusion React barcode implementation guidance.

Can syncfusion-react-barcode export printable barcode images?

Yes. syncfusion-react-barcode documents exportImage(filename, format) for JPG or PNG downloads and exportAsBase64Image(format) for API or report embedding from Syncfusion React barcode components.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.