mui-material-compact
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

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"]
  }
}

👉 check online preview

Package Sidebar

Install

npm i mui-material-compact

Weekly Downloads

5

Version

1.8.0

License

GPL-3.0

Unpacked Size

48.3 kB

Total Files

8

Last publish

Collaborators

  • guoyunhe