Sign up and get 15% off every plan.

Sign up
Menu

Open-source library, MIT licence

Material UI

Google's Material Design as React components: forms, lists, menus, dialogs and layout, plus pieces of MUI's free templates. 60 components, each running live with its code to copy. The first one under each heading is free; the rest come with paid plans.

Set up once

Every Material UI component needs Material UI and Emotion, which it uses for styles, and a theme wrapped round your app in the root layout. Set them up once with the three steps below, then paste in any component.

Material UI, its styling engine (emotion), the icons, and MUI's Next.js helperTerminal
npm install @mui/material @emotion/react @emotion/styled @mui/icons-material @mui/material-nextjs @emotion/cache
theme.ts: MUI's default theme with your font (here Inter, loaded with next/font)React
'use client';
import { createTheme } from '@mui/material/styles';

const theme = createTheme({
  typography: {
    fontFamily: 'var(--font-inter), "Helvetica", "Arial", sans-serif',
  },
});

export default theme;
app/layout.tsx: wrap the page so MUI's styles load on the server, with the theme and CssBaselineReact
import { AppRouterCacheProvider } from '@mui/material-nextjs/v16-appRouter';
import { ThemeProvider } from '@mui/material/styles';
import CssBaseline from '@mui/material/CssBaseline';
import { Inter } from 'next/font/google';
import theme from '../theme';

const inter = Inter({ subsets: ['latin'], display: 'swap', variable: '--font-inter' });

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en" className={inter.variable}>
      <body>
        <AppRouterCacheProvider>
          <ThemeProvider theme={theme}>
            <CssBaseline />
            {children}
          </ThemeProvider>
        </AppRouterCacheProvider>
      </body>
    </html>
  );
}

Inputs

15

Data display

9

Feedback

7

Surfaces

4

Layout

4

Utilities

5

Templates

6