lib-invoice-print/README.md
2020-10-16 15:10:34 +07:00

1.2 KiB

@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