0.0.4 • Published 4 years ago

react-table-pdf v0.0.4

Weekly downloads
8
License
ISC
Repository
github
Last release
4 years ago

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

NameTypeRequired
columnsArraytrue
dataSourceArraytrue
rowKeystring() => stringtrue
styleStyle false
headerRowStyleStyle false
rowStyleStyle () => Style false

TableRow Props

NameTypeRequired
childrenArraytrue
isHeaderbooleanfalse
styleStyle false

TableCell Props

NameTypeRequired
childrentexttrue
noBorderbooleanfalse
styleStyle false
0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago