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.
mui.com/material-ui/The MIT licenceSet up once
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.
npm install @mui/material @emotion/react @emotion/styled @mui/icons-material @mui/material-nextjs @emotion/cache
'use client';
import { createTheme } from '@mui/material/styles';
const theme = createTheme({
typography: {
fontFamily: 'var(--font-inter), "Helvetica", "Arial", sans-serif',
},
});
export default theme;
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
15A button in three styles: text, filled and outlined.
02Autocomplete With paid plansA text box that suggests matches from a list as you type, here a list of films.
03Button group With paid plansButtons joined into one bar, for actions that belong together.
04Checkbox With paid plansBoxes you tick on or off, each with its label.
05Floating action button With paid plansA round button for the main action on a screen, like add or edit.
06Number field With paid plansA box for numbers with up and down arrows, a lowest and highest value, and an error state.
07Radio group With paid plansA set of round options where only one can be picked.
08Rating With paid plansA row of stars to give or show a score.
09Select With paid plansA field that opens a list of options to pick one from.
10Slider With paid plansA handle you drag along a track to set a value, here the volume.
11Switch With paid plansAn on and off switch for a setting, with its label.
12Text field With paid plansA text box for forms, in outlined, filled and standard styles.
13Transfer list With paid plansTwo lists side by side, with buttons to move ticked items from one to the other.
14Toggle buttons With paid plansA row of buttons where one stays pressed, like text alignment.
15Growing text area With paid plansA plain text area that grows taller as you type.
Data display
9A round badge with someone's initials, in a few colours.
17Badge With paid plansA small count on the corner of an icon, like unread mail.
18Chip With paid plansA small rounded label, filled or outlined.
19Divider With paid plansA thin line that separates the parts of a card.
20Material icons With paid plansGoogle's Material icons in five styles: filled, outlined, rounded, two-tone and sharp.
21List With paid plansRows with an icon and text, like the folders of a mail app.
22Table With paid plansA simple data table with a header row and numbers lined up.
23Tooltip With paid plansA short label that shows when you point at a button.
24Typography With paid plansMUI's text styles, from large headings down to captions.
Feedback
7A short message in a coloured box: success, info, warning or error.
26Backdrop With paid plansA dark layer over the page with a spinner, while something loads.
27Dialog With paid plansA box in front of the page that asks to agree or cancel.
28Circular progress With paid plansRound rings that fill to show how far along something is.
29Progress bar With paid plansA bar that fills from left to right, with the percentage beside it.
30Skeleton With paid plansGrey shapes that stand in for text and pictures while they load.
31Snackbar With paid plansA short message that pops up at the bottom of the screen, with an undo button.
Surfaces
4A box that groups a short piece of content and its actions.
33Accordion With paid plansStacked panels that open and close to show more.
34App bar With paid plansThe bar along the top of an app, with a menu button, a title and a login button.
35Paper With paid plansA plain surface with a shadow or an outline, the base of most MUI boxes.
Layout
4A 12-column grid that sets each box's width by the screen size.
47Box With paid plansA plain box you style straight from its props, here with a hover colour.
48Container With paid plansCentres the content and caps how wide it gets.
49Stack With paid plansPuts items in a column or a row with even space between them.
Utilities
5A box in front of the page that closes when you click outside it.
51Popover With paid plansA small box that opens next to the button that opened it.
52Popper With paid plansA box that sits beside another element, for making your own pop-ups.
53Grow transition With paid plansMakes boxes grow into view and shrink away again.
54Click away With paid plansNotices a click outside a box, so a dropdown can close.
Templates
6A sign-in card with email and password checks, a reset-password dialog and social buttons.
56Sign-up page With paid plansA sign-up card with name, email and password checks and social buttons.
57Dashboard cards With paid plansA row of number cards with small trend lines, from MUI's dashboard template.
58Pricing section With paid plansThree price plans side by side, with the middle one picked out.
59FAQ section With paid plansCommon questions in panels that open to show the answers.
60Address form With paid plansA checkout form for a shipping address, in two columns.