Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const BlogAuthor = ({
alignItems: 'center',
}}
>
<Typography fontSize="14pt" variant="caption">
<Typography sx={{ fontSize: '14pt' }} variant="caption">
By{' '}
<Link
color="text.primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const data = [
bundlePhobiaLink:
'https://bundlephobia.com/package/material-react-table@latest',
description:
'Built on top of TanStack Table V8 and Material UI V6, Material React Table (MRT) is a batteries-included React table library that attempts to provide all the table features you need while trying to stay as highly performant and lightweight as possible. Customization is treated as a top priority to let you override any styles you need to change. Initially built in 2022, so it is still somewhat new.',
'Built on top of TanStack Table V8 and Material UI V9, Material React Table (MRT) is a batteries-included React table library that attempts to provide all the table features you need while trying to stay as highly performant and lightweight as possible. Customization is treated as a top priority to let you override any styles you need to change. Initially built in 2022, so it is still somewhat new.',
},
{
library: 'Mantine React Table',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ const data = [
},
{
mrtVersion: '3.x (This Version)',
muiVersion: '6.0+',
muiVersion: '6.0+ / tested with 9.x',
muiXDatePickers: '7.15.0+',
reactVersion: '18.0+',
muiIconsVersion: '6.0+',
muiIconsVersion: '6.0+ / tested with 9.x',
emotionVersion: '11.0+',
pigmentCSS: 'Optional',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import LaunchIcon from '@mui/icons-material/Launch';
import LibraryAddCheckIcon from '@mui/icons-material/LibraryAddCheck';
import UnfoldLessIcon from '@mui/icons-material/UnfoldLess';
import UnfoldMoreIcon from '@mui/icons-material/UnfoldMore';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { LinkHeading } from './LinkHeading';
import { usePlausible } from 'next-plausible';
import { useThemeContext } from '../../styles/ThemeContext';
Expand Down Expand Up @@ -117,8 +119,8 @@ export const SourceCodeSnippet = ({
>
<LinkHeading
tableId={tableId}
sx={{ textTransform: 'capitalize' }}
variant="h4"
textTransform="capitalize"
>
Demo
</LinkHeading>
Expand Down Expand Up @@ -232,7 +234,9 @@ export const SourceCodeSnippet = ({
</Box>
)}
<Collapse in={!['stackblitz', 'sandbox'].includes(codeTab)}>
<Component />
<LocalizationProvider dateAdapter={AdapterDayjs}>
<Component />
</LocalizationProvider>
</Collapse>
</>
)}
Expand Down Expand Up @@ -267,7 +271,7 @@ export const SourceCodeSnippet = ({
>
<LinkHeading
tableId={tableId}
textTransform="capitalize"
sx={{ textTransform: 'capitalize' }}
variant="h4"
>
Source Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '@mui/material';
import { useRouter } from 'next/router';
import Head from 'next/head';
import { ArrowBack } from '@mui/icons-material';
import ArrowBack from '@mui/icons-material/ArrowBack';

export const BreadCrumbs = () => {
const { route, back } = useRouter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
Paper,
Typography,
} from '@mui/material';
import { Edit, GitHub } from '@mui/icons-material';
import Edit from '@mui/icons-material/Edit';
import GitHub from '@mui/icons-material/GitHub';
import TableOfContentsList from './TableOfContentsList';
import { routes } from './routes';
import { EthicalAd } from '../mdx/EthicalAd';
Expand Down Expand Up @@ -120,7 +121,7 @@ export const Footer = () => {
p: '1.5rem',
}}
>
<Typography color="text.secondary" textAlign="center">
<Typography color="text.secondary" sx={{ textAlign: 'center' }}>
© {new Date().getFullYear()} Kevin&nbsp;Van&nbsp;Cott
</Typography>
<Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const MiniNav = () => {
maxWidth: isXLDesktop ? '250px' : '500px',
}}
>
<Typography mt="1rem" component="div" variant="h6">
<Typography component="div" sx={{ mt: '1rem' }} variant="h6">
On This Page
</Typography>
<ul
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export const SideBar = ({ navOpen, setNavOpen }: Props) => {

return (
<Drawer
PaperProps={{ component: 'aside' }}
open={navOpen}
onClose={() => setNavOpen(false)}
slotProps={{ paper: { component: 'aside' } }}
variant={isMobile ? 'temporary' : 'permanent'}
sx={{
zIndex: 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import {
} from '@mui/material';

//Icons Imports
import { AccountCircle, Send } from '@mui/icons-material';
import AccountCircle from '@mui/icons-material/AccountCircle';
import Send from '@mui/icons-material/Send';

//Mock Data
import { data } from './makeData';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-charts": "^7.26.0",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-charts": "^9.0.4",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ const Example = () => {
});

return (
<Stack direction={isMobile ? 'column-reverse' : 'row'} gap="8px">
<Stack direction={isMobile ? 'column-reverse' : 'row'} sx={{ gap: '8px' }}>
<MRT_TableContainer table={table} />
<Paper>
<Stack p="8px" gap="8px">
<Stack sx={{ gap: '8px', p: '8px' }}>
{table
.getLeafHeaders()
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.4",
"@mui/material": "^6.4.4",
"@mui/x-date-pickers": "^7.26.0",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/x-date-pickers": "^9.0.4",
"dayjs": "^1.11.13",
"material-react-table": "^3.2.0",
"react": "^19.0.0",
Expand Down
Loading