react-table-pdf
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

customizable pdfTable build on react, ts and @react-pdf/renderer

Note: This Library based on @react-pdf/renderer

How to install

yarn add react-table-pdf
npm i react-table-pdf

🔨 Usage

import { Table, TableRow, TableCell } from "react-table-pdf";

also we provide utils so if you want to build your own Table

import {
  excuteFnOrReturnMe,
  isThereData,
  normalizer,
  renderRowStyle,
  renderRowKey
} from "react-table-pdf";

Table Props

Name Type Required
columns Array true
dataSource Array true
rowKey string () => string
style Style false
headerRowStyle Style false
rowStyle Style () => Style

TableRow Props

Name Type Required
children Array true
isHeader boolean false
style Style false

TableCell Props

Name Type Required
children text true
noBorder boolean false
style Style false

Package Sidebar

Install

npm i react-table-pdf

Weekly Downloads

64

Version

0.0.4

License

ISC

Unpacked Size

60.1 kB

Total Files

70

Last publish

Collaborators

  • ahmednassar