UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

61 lines (56 loc) 1.11 kB
// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import { DataGrid } from '@mui/x-data-grid' import CardHeader from '@mui/material/CardHeader' // ** Data Import import { rows } from '~/@fake-db/table/static-data' const columns = [ { flex: 0.1, field: 'id', minWidth: 80, headerName: 'ID' }, { flex: 0.25, minWidth: 200, field: 'full_name', headerName: 'Name' }, { flex: 0.25, minWidth: 230, field: 'email', headerName: 'Email' }, { flex: 0.15, minWidth: 130, field: 'start_date', headerName: 'Date' }, { flex: 0.15, minWidth: 120, field: 'experience', headerName: 'Experience' }, { flex: 0.1, field: 'age', minWidth: 80, headerName: 'Age' } ] const TableBasic = () => { return ( <Card> <CardHeader title='Basic' /> <Box sx={{ height: 500 }}> <DataGrid columns={columns} rows={rows.slice(0, 10)} /> </Box> </Card> ) } export default TableBasic