diff --git a/docs/data/material/components/table/DataTable.js b/docs/data/material/components/table/DataTable.js index 1a509df8f8bfb6..3290483d3b6962 100644 --- a/docs/data/material/components/table/DataTable.js +++ b/docs/data/material/components/table/DataTable.js @@ -1,5 +1,6 @@ import * as React from 'react'; import { DataGrid } from '@mui/x-data-grid'; +import Paper from '@mui/material/Paper'; const columns = [ { field: 'id', headerName: 'ID', width: 70 }, @@ -35,7 +36,7 @@ const rows = [ export default function DataTable() { return ( -
+ -
+ ); } diff --git a/docs/data/material/components/table/DataTable.tsx b/docs/data/material/components/table/DataTable.tsx index f902e6e0089b41..905f56c0a795b7 100644 --- a/docs/data/material/components/table/DataTable.tsx +++ b/docs/data/material/components/table/DataTable.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { DataGrid, GridColDef } from '@mui/x-data-grid'; +import Paper from '@mui/material/Paper'; const columns: GridColDef[] = [ { field: 'id', headerName: 'ID', width: 70 }, @@ -35,7 +36,7 @@ const rows = [ export default function DataTable() { return ( -
+ -
+ ); } diff --git a/docs/data/material/components/table/table.md b/docs/data/material/components/table/table.md index f3deeb522df77d..ca183adcf6fc60 100644 --- a/docs/data/material/components/table/table.md +++ b/docs/data/material/components/table/table.md @@ -34,7 +34,7 @@ This constraint makes building rich data tables challenging. The [`DataGrid` component](/x/react-data-grid/) is designed for use-cases that are focused on handling large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features. -{{"demo": "DataTable.js", "bg": "outlined"}} +{{"demo": "DataTable.js", "bg": true}} ## Dense table