mui-material-compact
v1.8.0
Published
Helper to create compact @mui/material theme
Downloads
35
Maintainers
Readme
mui-material-compact
Helper to create compact @mui/material theme
Install
npm i mui-material-compact
Usage
import { ThemeProvider, TextField } from '@mui/material';
import { createCompactTheme } from 'mui-material-compact';
const theme = createCompactTheme({
// Your theme options...
});
<ThemeProvider theme={theme}>
<TextField size="small" />
<TextField size="medium" />
<TextField size="large" />
</ThemeProvider>;
If you are using TypeScript, modify your tsconfig.json to enable extra size variants:
{
"compilerOptions": {
"types": ["mui-material-compact/overrides"]
}
}