MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
Almost all DataGrid demos have their top corners cropped—likely due to the demo container border-radius being larger than DataGrid's.
I think the demos are using the "bg": "inline" variant for demo container, and in addition to the cropped corners, we also have these two borders that feels off:
Suggestion
Instead of using the "bg": "inline" variant, start using the "bg": "outlined" (this one), with a padding from the DataGrid and demo container
Related page
https://mui.com/x/react-data-grid/
Kind of issue
Broken demo
Issue description
Almost all DataGrid demos have their top corners cropped—likely due to the demo container border-radius being larger than DataGrid's.
I think the demos are using the
"bg": "inline"
variant for demo container, and in addition to the cropped corners, we also have these two borders that feels off:Suggestion
Instead of using the
"bg": "inline"
variant, start using the"bg": "outlined"
(this one), with a padding from theDataGrid
and demo containerSearch keywords: demo datagrid container border