1.0.4 • Published 5 months ago

taro-code-creator v1.0.4

Weekly downloads
-
License
LIC
Repository
github
Last release
5 months ago

taro-code-creator

Supports generating barcodes and QR codes

Supporting platforms

weapp h5 tt swan alipay qq rn

Installing

yarn add taro-code-creator

Basic Usage

import CodeCreator from "taro-code-creator";

const App = () => {
  return (
    <>
      <CodeCreator
        codeText="test"
        size={420}
        logo={defaultHeadSculpture}
        logoSize={88}
      />
      <CodeCreator type="bar" width={400} height={100} codeText="test" />
    </>
  );
};

img

Component API

Based on taro-code-creator

PropDescriptionDefaulttype
typecode typeqrall
codeTextQR code contentall
colorQR code color#000all
backgroundColorQR code background color#fffall
sizeQR code size200qr
logologo url | qr
logoSizeLogo size60qr
callbackCallback function for generating QR codesall
widthbarcode widthbar
heightbarcode heightbar
formatbarcode formatbar