All Components

You are on the site of the Kendo UI Wrappers for React suite which contains wrappers for the Kendo UI for jQuery widgets. To explore the brand-new set of Kendo UI for React components which are built from the ground up, go to the Kendo UI for React suite.

Barcodes Overview

The Barcodes enable the user to easily generate images that represent QR (Quick Response) codes and barcodes.

Basic Usage

The following example demonstrates the Barcode and QRCode components in action.

class LayoutsContainer extends React.Component {

     render() {
       return (
           <div className={"row example-wrapper"}>
               <div className={"col-xs-12 col-md-6 example-col"}>
                   <p>Barcode</p>
                   <Barcode value={849070} type={"code128"} width={280} height={100} />
               </div>
               <div className={"col-xs-12 col-md-6 example-col"}>
                   <p>QRCode</p>
                   <QRCode value={"tel:+1-888-365-2779"} errorCorrection={"Q"} color={"#67a814"} size={120} />
               </div>
           </div>
       );
     }
   }

   ReactDOM.render(
     <LayoutsContainer  />,
     document.querySelector('my-app')
   );

Installation

All components that you reference during the installation will be present in the final bundle of your application. To avoid ending up with components you do not actually need, import from the package only the desired component.

  1. Download and install the package.

    <pre><code class="language-sh">npm install --save @progress/kendo-barcode-react-wrapper</code></pre>
    
  2. Once installed, import the desired component from the package.

    <pre><code class="language-sh">import { Barcode } from &#39;@progress/kendo-barcodes-react-wrapper&#39;;</code></pre>
    
    The package also exports the following individual components:
    
    - Barcode
    - QRCode
    
  3. You are required to install one of the Kendo UI themes to style your components.

Dependencies

The Barcodes package requires you to install the following peer dependencies in your application:

  • @progress/kendo-ui
In this article