Skip to content

Setting Row Heights #119

Answered by KevinVandy
dianventer asked this question in Q&A
Sep 23, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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',
      },
    }}
  />
);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dianventer
Comment options

Answer selected by dianventer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants