react-jsbarcode
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,8 @@ # Changelog | ||
### [0.1.2](https://github.com/iamchathu/react-jsbarcode/compare/v0.1.1...v0.1.2) (2021-10-07) | ||
### Bug Fixes | ||
- readme example and add more details ([73c68ca](https://github.com/iamchathu/react-jsbarcode/commit/73c68ca46dac183b53b02a581550feddc3995d9e)) | ||
### [0.1.1](https://github.com/iamchathu/react-jsbarcode/compare/v0.1.0...v0.1.1) (2021-10-07) | ||
@@ -7,0 +13,0 @@ |
{ | ||
"name": "react-jsbarcode", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "JSBarcode component for React", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/iamchathu/react-jsbarcode", |
@@ -34,4 +34,10 @@ # react-jsbarcode | ||
const App = () => { | ||
return <ReactJSBarcode data="ABC123" />; | ||
return <ReactJSBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />; | ||
}; | ||
``` | ||
For all options refer jsbarcode [wiki](https://github.com/lindell/JsBarcode/wiki/Options). | ||
### Renderers | ||
JSBarcode supports rendering to SVG, image and canvas. Default renderer is 'svg'. |
9085
43