diff --git a/src/index.js b/src/index.js
index 826af32..663682c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -349,13 +349,18 @@ function MuiTable(props) {
})
);
+ cellProps.style = {
+ ...cellProps.style,
+ visibility: 'hidden'
+ };
+
return (
- ' '
+
);
})}
diff --git a/stories/basic.js b/stories/basic.js
index 9363ddc..15eae75 100644
--- a/stories/basic.js
+++ b/stories/basic.js
@@ -514,6 +514,31 @@ storiesOf('Pagination', module)
/>
);
})
+ .add('addPlaceholderRows with cell styles', () => {
+ const data = createPersonData(13);
+ return (
+ `${d.firstName} ${d.lastName}`
+ },
+ { name: 'jobTitle', header: 'Job Title' },
+ { name: 'jobArea', header: 'Job Area' }
+ ]}
+ addPlaceholderRows
+ includeHeaders
+ cellProps={{
+ style: {
+ padding: 4
+ }
+ }}
+ containerProps={{ style: { backgroundColor: 'white' } }}
+ />
+ );
+ })
.add('addPlaceholderRows and empty data', () => {
return (