react-jsbarcode 0.2.2 → 0.2.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/Readme.md +15 -3
- package/lib/index.d.ts +0 -1
- package/lib/index.esm.js +3350 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +3365 -36
- package/lib/index.js.map +1 -1
- package/package.json +11 -3
- package/lib/index.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.3-beta.0](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.2...v0.2.3-beta.0) (2021-10-12)
|
|
6
|
+
|
|
5
7
|
### [0.2.2](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.1...v0.2.2) (2021-10-08)
|
|
6
8
|
|
|
7
9
|
### Features
|
package/Readme.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## About
|
|
11
11
|
|
|
12
|
-
This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>). Written as a React functional component using React hooks.
|
|
12
|
+
This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>). Written as a React functional component using React hooks. <ReactBarcode />
|
|
13
13
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
@@ -27,11 +27,23 @@ yarn add react-jsbarcode
|
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
30
|
+
- Basic usage
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import ReactBarcode from 'react-jsbarcode';
|
|
34
|
+
|
|
35
|
+
const App = () => {
|
|
36
|
+
return <ReactBarcode value="ABC123" />;
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- Advanced usage
|
|
41
|
+
|
|
30
42
|
```tsx
|
|
31
|
-
import
|
|
43
|
+
import ReactBarcode from 'react-jsbarcode';
|
|
32
44
|
|
|
33
45
|
const App = () => {
|
|
34
|
-
return <
|
|
46
|
+
return <ReactBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />;
|
|
35
47
|
};
|
|
36
48
|
```
|
|
37
49
|
|
package/lib/index.d.ts
CHANGED