html {
font-size: 62.5%;
}
- "@mui/material": "^5.0.0"
- "@mui/x-data-grid": "7.14.0"
- "@mui/x-data-grid-pro": "7.14.0"
- "@mui/x-date-pickers": "7.14.0"
- "@mui/x-date-pickers-pro": "7.14.0"
npm install @ringpublishing/ring-mui-theme
import {ThemeConfig} from '@ringpublishing/ring-mui-theme';
import {TablePagination} from '@mui/material';
function App() {
return(
<ThemeConfig mode={'light'}>
<TablePagination
count={2000}
rowsPerPage={10}
page={1}
component="div"
onPageChange={() => {
}}
/>
</ThemeConfig>
)
}
Note: default language is 'enUS' and it works 'out of the box', if you want to support other locales follow example below.
import {ThemeConfig} from '@ringpublishing/ring-mui-theme';
import {TablePagination} from '@mui/material';
import { zhCN } from '@mui/material/locale';
import { plPL as xDataGridPl } from '@mui/x-data-grid/locales';
function App() {
return(
<ThemeConfig mode={'light'} language={'plPL'} externalLocales={[xDataGridPl, zhCN]}>
<TablePagination
count={2000}
rowsPerPage={10}
page={1}
component="div"
onPageChange={() => {
}}
/>
</ThemeConfig>
)
}
import {ThemeConfig} from '@ringpublishing/ring-mui-theme';
import {TablePagination} from '@mui/material';
function App() {
const MuiDataGridPart = {
components: {
MuiDataGrid: {
styleOverrides: {
root: {
backgroundColor: 'red',
},
},
},
},
};
return(
<ThemeConfig mode={'light'} externalComponentsTheme={MuiDataGridPart}>
<TablePagination
count={2000}
rowsPerPage={10}
page={1}
component="div"
onPageChange={() => {
}}
/>
</ThemeConfig>
)
}