From d7cf03d827596ebc526fa62071af738c5e36ecac Mon Sep 17 00:00:00 2001 From: Kaappo Raivio Date: Sat, 20 May 2023 23:17:30 +0300 Subject: [PATCH] Add option to disable wrapping on table rows --- src/TableCell.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/TableCell.tsx b/src/TableCell.tsx index 2bee8d7..3f65849 100644 --- a/src/TableCell.tsx +++ b/src/TableCell.tsx @@ -54,6 +54,11 @@ export interface TableCellProps extends TableBorder { * The font-size to apply to the cell. */ fontSize?: number | string; + + /** + * Whether to use react-pdf's automatic wrapping for the cell content. If not defined it will be true. + */ + wrap?: boolean; } /** @@ -95,7 +100,7 @@ export class TableCell extends React.PureComponent { return ( {content}