Skip to content

Headers alignment #93

Answered by KevinVandy
marcosluizfp asked this question in Q&A
Sep 17, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Yes, actually and it is way simpler than all that by using the align prop in muiTableHeadCellProps

I hadn't added it to the docs yet, but you can see some storybook stories showing the default behavior

https://www.material-react-table.dev/?path=/story/styling-table-alignment-examples--center-all-cells

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@KevinVandy
Comment options

@marcosluizfp
Comment options

Answer selected by marcosluizfp
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