4.0.0 • Published 3 years ago

react-reports-pdf v4.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

React Reports PDF

Credits:

pdfmake

Install

npm i pdfmake react-reports-pdf

npm i @types/pdfmake -D

Example of use

import { RelatorioPDF } from 'react-reports-pdf';


const App = () => {

  const columns:[string, string] =  ["ID","NOME"];
  const data:{}[] =  [{id:"1",name:"Teste"}];

  const {exportPDF} = ReportPDF({
    title:"Relatorio",
    columns: columns as any,
    data: data as any
  })

  return (
    <div>
      <button onClick={()=>exportPDF()}>GET</button>
    </div>
  );
}

export default App;
4.0.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago