@material-ui/core vs @mui/material
Material Design Libraries for React
@material-ui/core@mui/materialSimilar Packages:

Material Design Libraries for React

Both @material-ui/core and @mui/material are libraries that provide React components implementing Google's Material Design. They aim to help developers build responsive and aesthetically pleasing user interfaces with ease. While @material-ui/core was the original package, @mui/material represents the evolution of the library, incorporating modern features and improvements, including better performance and accessibility enhancements. This transition reflects the library's commitment to staying current with best practices in UI development.

Npm Package Weekly Downloads Trend

3 Years

Github Stars Ranking

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
@material-ui/core098,1325.96 MB1,679-MIT
@mui/material098,1325.49 MB1,6795 days agoMIT

Feature Comparison: @material-ui/core vs @mui/material

Versioning and Updates

  • @material-ui/core:

    @material-ui/core is the original version of the Material-UI library. It has a stable API but may not receive new features as frequently as its successor. It is suitable for projects that prioritize stability over the latest features.

  • @mui/material:

    @mui/material is the latest version, which includes significant updates and improvements. It follows a more modern approach to versioning, ensuring that developers can easily adopt new features and enhancements without breaking changes.

Customization

  • @material-ui/core:

    Customization in @material-ui/core is achieved through a theme provider and styled components. While it allows for some level of customization, it may require more boilerplate code compared to the newer version.

  • @mui/material:

    @mui/material offers a more streamlined customization process with the new sx prop and improved theming capabilities. This allows developers to apply styles directly to components with less code, making it easier to create unique designs.

Performance

  • @material-ui/core:

    Performance in @material-ui/core is generally good, but it may not be as optimized for modern web applications as @mui/material. Some components may have unnecessary re-renders, affecting overall performance.

  • @mui/material:

    @mui/material is optimized for performance with features like tree-shaking and better handling of component re-renders. It ensures that only the necessary components are loaded, improving the speed and responsiveness of applications.

Accessibility

  • @material-ui/core:

    @material-ui/core has basic accessibility features but may require additional work to ensure compliance with modern accessibility standards. Developers need to manually implement some ARIA attributes and roles.

  • @mui/material:

    @mui/material places a stronger emphasis on accessibility, with built-in support for ARIA attributes and improved keyboard navigation. This makes it easier for developers to create applications that are accessible to all users.

Community and Support

  • @material-ui/core:

    @material-ui/core has a large community and extensive documentation, but as it is being phased out, new support and features may be limited.

  • @mui/material:

    @mui/material benefits from an active community and ongoing support from the maintainers. It has comprehensive documentation and a growing number of resources available for developers.

How to Choose: @material-ui/core vs @mui/material

  • @material-ui/core:

    Choose @material-ui/core if you are maintaining legacy projects that were built with this version and require stability and backward compatibility. It is also suitable for teams that have already invested in this library and prefer to continue using it without migrating to the newer version.

  • @mui/material:

    Choose @mui/material if you are starting a new project or looking to take advantage of the latest features, improved performance, and better accessibility support. It is designed to be more modular, allowing for a more flexible and customizable approach to building user interfaces.

README for @material-ui/core

Material-UI logo

Material-UI

MUI v5 is out! ✨ Check out the latest documentation here.

React components for faster and simpler web development. Build your own design system, or start with Material Design.

license npm latest package npm next package npm downloads CircleCI Coverage Status Follow on Twitter Dependabot Status Average time to resolve an issue Crowdin Open Collective backers and sponsors

Installation

Material-UI is available as an npm package.

// with npm
npm install @material-ui/core

// with yarn
yarn add @material-ui/core

Head to the v4 documentation for more details.

Older versions

Who sponsors Material-UI?

Diamond 💎

octopus doit-intl

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

Gold 🏆

via Patreon

tidelift bitsrc Next gen digital product studio.

via OpenCollective

call-em-all hoodiebees Screen recorder for Mac

Direct

elevator

Gold Sponsors are those who have pledged $500/month or more to Material-UI.

There is more!

See the full list of our backers.

Usage

Here is a quick example to get you started, it's all you need:

import React from 'react';
import ReactDOM from 'react-dom';
import Button from '@material-ui/core/Button';

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

ReactDOM.render(<App />, document.querySelector('#app'));

Yes, it's really all you need to get started as you can see in this live and interactive demo:

Edit Button

Questions

For how-to questions and other non-issues, please use StackOverflow instead of GitHub issues. There is a StackOverflow tag called "material-ui" that you can use to tag your questions.

Examples

Are you looking for an example project to get started? We host some.

Documentation

Check out our documentation website.

Premium Themes

You can find complete templates & themes in the Material-UI store.

Contributing

Read the contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Material-UI.

Notice that contributions go far beyond pull requests and commits. Although we love giving you the opportunity to put your stamp on Material-UI, we also are thrilled to receive a variety of other contributions.

Changelog

If you have recently updated, please read the changelog for details of what has changed.

Roadmap

The future plans and high priority features and enhancements can be found in the roadmap file.

License

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

Sponsoring services

These great services sponsor Material-UI's core infrastructure:

GitHub

GitHub allows us to host the Git repository.

CircleCI

CircleCI allows us to run the test suite.

Netlify

Netlify allows us to distribute the documentation.

CrowdIn

CrowdIn allows us to translate the documentation.

BrowserStack

BrowserStack allows us to test in real browsers.

CodeCov

CodeCov allows us to monitor the test coverage.