Setting Row Heights #119
-
Good day, I've tried changing a bunch of MUI props in the muiProps for the table but am unable to reduce the row height. So far I've tried this: muiTableBodyRowProps={{ AS well as this: muiTableBodyCellProps={{ But am unable to get the rows to be more "dense" Btw - this libraray is awesome! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You have some invalid CSS values up there so that's why its not working. padding: none is invalid CSS Something like this works fine for what you want: return (
<MaterialReactTable
columns={columns}
data={data}
muiTableBodyRowProps={{
sx: {
height: '10px',
},
}}
muiTableBodyCellProps={{
sx: {
p: '2px 16px',
},
}}
/>
); |
Beta Was this translation helpful? Give feedback.
You have some invalid CSS values up there so that's why its not working. padding: none is invalid CSS
Something like this works fine for what you want: