.idea | ||
example | ||
src | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.prettierrc | ||
.travis.yml | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tsconfig.test.json | ||
yarn.lock |
@cubetiq/invoice-print
Invoice Print 80mn using pdfmake
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
MIT © Chantha Suon