Go to file
2020-10-16 15:10:34 +07:00
.idea decalre moudle 1.0.4 2020-10-16 11:48:05 +07:00
example update example code 2020-10-16 15:10:34 +07:00
src decalre moudle 1.0.4 2020-10-16 11:48:05 +07:00
.editorconfig init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
.eslintignore init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
.eslintrc init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
.gitignore init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
.prettierrc init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
.travis.yml init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
package.json updated to version 1.0.5 and fixed deps on peer deps 2020-10-16 11:56:17 +07:00
README.md update example code 2020-10-16 15:10:34 +07:00
tsconfig.json init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
tsconfig.test.json init create-react-library@3.1.1 2020-10-16 10:22:02 +07:00
yarn.lock init project 2020-10-16 10:45:37 +07:00

@cubetiq/invoice-print

Invoice Print 80mn using pdfmake

NPM JavaScript Style Guide

Install

npm install --save @cubetiq/invoice-print

OR Using YARN

yarn add @cubetiq/invoice-print

Usage

import React from 'react'
import "invoice-print/dist/index.css"
import { useDoc } from 'invoice-print'
import { mockDataV2 } from './MockData'

const App = () => {
  const invoicePrint = useDoc(mockDataV2)
  return (
    <div>
      <button children={"Click Me"} onClick={()=> invoicePrint.print()}/>
    </div>
  )
}

export default App

Contributors

Project's repository: Library Invoice Print

License

@CUBETIQ

MIT © Chantha Suon