Getting Started With Syncfusion® Barcode Component In Vue 3

Sample date Updated on Oct 28, 2025
barcode-generator syncfusion-vue-barcode vue-cli-barcode vue3-barcode vue3-qrcode

This sample project demonstrates how to use the Syncfusion Barcode, QR Code and DataMatrix generator components in a Vue 3 application.

The repository contains a minimal Vue 3 app (created with Vue CLI) that registers and renders the following Syncfusion components from @syncfusion/ej2-vue-barcode-generator:

  • BarcodeGeneratorComponent (<ejs-barcodegenerator>)
  • QRCodeGeneratorComponent (<ejs-qrcodegenerator>)
  • DataMatrixGeneratorComponent (<ejs-datamatrixgenerator>)

Prerequisites

System requirements for Syncfusion® Vue UI components

Creating Vue application using Vue CLI

The easiest way to create a Vue application is to use the Vue CLI. Vue CLI versions higher than 4.5.0 are mandatory for creating applications using Vue 3. Use the following command to uninstall older versions of the Vue CLI.

npm uninstall vue-cli -g

Use the following commands to install the latest version of Vue CLI.

npm install -g @vue/cli
npm install -g @vue/cli-init

Create a new project using the following command.

vue create quickstart

Initiating a new project prompts us to select the type of project to be used for the current application. Select the option Default (Vue 3) from the menu.

Adding Syncfusion® Barcode package in the application

Use the following command to install it.

npm install @syncfusion/ej2-vue-barcode-generator

Running the application

Run the application using the following command.

npm run serve

Open http://localhost:8080 in your browser (Vue CLI's default dev server) to see the sample.

Up arrow