@progress/kendo-react-barcodes
Version:
React Barcodes provide a set of React components to build beautiful and customizable barcodes. KendoReact Barcodes package
56 lines (55 loc) • 2.08 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { QRCodeProps } from './QRCodeProps.js';
import { Surface, Group, ImageExportOptions, SVGExportOptions } from '@progress/kendo-drawing';
import * as React from 'react';
/**
* Represents the KendoReact QRCode component.
*/
export declare class QRCode extends React.Component<QRCodeProps, {}> {
private _baseBarcode;
/**
* @hidden
*/
get barcodeInstance(): any;
/**
* Gets the Drawing `Surface` of the Barcode.
*/
get surface(): Surface | null;
/**
* Gets the DOM element of the Barcode.
*/
get element(): HTMLDivElement | null;
/**
* @hidden
*/
render(): any;
/**
* Exports the component as an image. The export operation runs asynchronously and returns a promise.
*
* @param {ImageExportOptions} options - The parameters for the exported image.
* @returns {Promise<string>} - A promise that resolves with a PNG image encoded as a Data URI.
*/
exportImage(options?: ImageExportOptions): Promise<string>;
/**
* Exports the component as an SVG document. The export operation runs asynchronously and returns a promise.
*
* @param options - The parameters for the exported file.
* @returns A promise that resolves with an SVG document that is encoded as a Data URI.
*/
exportSVG(options?: SVGExportOptions): Promise<string>;
/**
* Exports a Barcode component as a Drawing `Scene`.
*
* @param {any} options - The parameters for the export operation.
* @returns {Group} A promise that returns the root `Group` of the scene.
*/
exportVisual(options?: any): Group;
private getTarget;
private deriveOptionsFromParent;
}