Socket
Socket
Sign inDemoInstall

@mui/material

Package Overview
Dependencies
11
Maintainers
6
Versions
139
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mui/material

React components that implement Google's Material Design.


Version published
Weekly downloads
3.7M
decreased by-0.11%
Maintainers
6
Install size
17.7 MB
Created
Weekly downloads
 

Package description

What is @mui/material?

The @mui/material package is a React component library that implements Google's Material Design. It provides a robust, customizable, and accessible collection of components that can be used to build a wide range of user interfaces for web applications.

What are @mui/material's main functionalities?

UI Components

This feature provides pre-built UI components such as buttons, cards, dialogs, and more, which can be easily imported and used in a React application.

import Button from '@mui/material/Button';

function App() {
  return <Button variant='contained'>Click Me</Button>;
}

Layout Components

This feature includes components for creating layouts, such as containers and grid systems, to help organize the content on the page.

import Container from '@mui/material/Container';
import Grid from '@mui/material/Grid';

function App() {
  return (
    <Container>
      <Grid container spacing={2}>
        <Grid item xs={12} sm={6}>
          Content 1
        </Grid>
        <Grid item xs={12} sm={6}>
          Content 2
        </Grid>
      </Grid>
    </Container>
  );
}

Theming

This feature allows for customization of the look and feel of components through theming, enabling developers to define color schemes, typography, and other design elements.

import { createTheme, ThemeProvider } from '@mui/material/styles';
import Button from '@mui/material/Button';

const theme = createTheme({
  palette: {
    primary: {
      main: '#556cd6',
    },
  },
});

function App() {
  return (
    <ThemeProvider theme={theme}>
      <Button color='primary'>Themed Button</Button>
    </ThemeProvider>
  );
}

Icons

This feature provides a large set of icons that can be used in conjunction with other components or standalone.

import AccessAlarmIcon from '@mui/icons-material/AccessAlarm';

function App() {
  return <AccessAlarmIcon />;
}

Other packages similar to @mui/material

Changelog

Source

5.8.6

<!-- generated comparing v5.8.5..master -->

Jun 27, 2022

A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:

  • ⚒️ Fixed React 18 issues in few components
  • 🚀 Improved the TypeScript augmentation when using CSS variables with @mui/material
  • many other 🐛 bug fixes and 📚 documentation improvements

Readme

Source

MUI logo

MUI Core

MUI Core contains foundational React UI component libraries for shipping new features faster.

  • Material UI is a comprehensive library of components that features our implementation of Google's Material Design system.

  • Joy UI is a beautifully designed library of React UI components.

  • MUI Base is our library of "unstyled" components and low-level hooks. With Base, you gain complete control over your app's CSS and accessibility features.

  • MUI System is a collection of CSS utilities to help you rapidly lay out custom designs.

Installation

Material UI

Material UI is available as an npm package.

// with npm
npm install @mui/material @emotion/react @emotion/styled

// with yarn
yarn add @mui/material @emotion/react @emotion/styled
Older versions

Note: @next only points to pre-releases. Use @latest for the latest stable release.

MUI Base

MUI Base is available as an npm package.

// with npm
npm install @mui/base

// with yarn
yarn add @mui/base

Note: MUI Base is still in alpha. We are adding new components regularly and you're welcome to contribute!

MUI System

MUI System is available as an npm package.

// with npm
npm install @mui/system @emotion/react @emotion/styled

// with yarn
yarn add @mui/system @emotion/react @emotion/styled

Or if you want to use styled-components as a styling engine:

// with npm
npm install @mui/system @mui/styled-engine-sc styled-components

// with yarn
yarn add @mui/system @mui/styled-engine-sc styled-components

Visit our styled-engine guide for more information about how to configure styled-components as the style engine.

Sponsors

Diamond 💎

octopus doit-intl zesty.io

Diamond Sponsors are those who have pledged $1,500/month or more to MUI.

Gold 🏆

via OpenCollective or via Patreon

tidelift.com bit.dev text-em-all.com laststance.io online-aussie-casino.com sumatosoft.com megafamous.com

Gold Sponsors are those who have pledged $500/month or more to MUI.

More backers

See the full list of our backers.

Getting started with Material UI

Here is an example of a basic app using Material UI's Button component:

import * as React from 'react';
import Button from '@mui/material/Button';

function App() {
  return <Button variant="contained">Hello World</Button>;
}

In the interactive demo below, try changing the code and see how it affects the output. (Hint: change variant to "outlined" and color to "secondary". For more options, see the Button component page in our docs.)

Edit Button

Questions

For how-to questions that don't involve making changes to the code base, please use Stack Overflow instead of GitHub issues. Use the "mui" tag on Stack Overflow to make it easier for the community to find your question.

Examples

Our documentation features a collection of example projects using Material UI.

Documentation

Premium themes

You can find complete templates and themes in the MUI Store.

Contributing

Read the contributing guide to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.

Contributing to MUI Core is about more than just issues and pull requests! There are many other ways to support MUI beyond contributing to the code base.

Changelog

The changelog is regularly updated to reflect what's changed in each new release.

Roadmap

Future plans and high-priority features and enhancements can be found in our roadmap.

License

This project is licensed under the terms of the MIT license.

Security

For details of supported versions and contact details for reporting security issues, please refer to the security policy.

Sponsoring services

These great services sponsor MUI's core infrastructure:

GitHub

GitHub lets us host the Git repository and coordinate contributions.

Netlify

Netlify lets us distribute the documentation.

Crowdin

Crowdin lets us translate the documentation.

BrowserStack

BrowserStack lets us test in real browsers.

CodeCov

CodeCov lets us monitor test coverage.

Keywords

FAQs

Last updated on 27 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc