@material-ui/core
Version:
React components that implement Google's Material Design.
173 lines (107 loc) • 9.09 kB
Markdown
<p align="center">
<a href="https://material-ui.com/" rel="noopener" target="_blank"><img width="150" src="https://material-ui.com/static/logo.svg" alt="Material-UI logo"></a></p>
</p>
<h1 align="center">Material-UI</h1>
<div align="center">
[React](https://reactjs.org/) components for faster and simpler web development. Build your own design system, or start with [Material Design](https://material.io/design/introduction/).
[](https://www.npmjs.com/package/@material-ui/core)
[](https://www.npmjs.com/package/@material-ui/core)
[](https://circleci.com/gh/mui-org/material-ui/tree/master)
[](https://dev.azure.com/mui-org/Material-UI/_build/latest?definitionId=1&branchName=master)
[](https://codecov.io/gh/mui-org/material-ui/branch/master)
[](https://bestpractices.coreinfrastructure.org/projects/1320)

[](https://twitter.com/MaterialUI)
[](https://dependabot.com)
[](https://david-dm.org/mui-org/material-ui/master?type=peer&path=packages/material-ui)
[](https://david-dm.org/mui-org/material-ui/master?path=packages/material-ui)
[](https://david-dm.org/mui-org/material-ui/master?type=dev)
[](https://isitmaintained.com/project/mui-org/material-ui 'Average time to resolve an issue')
[](https://translate.material-ui.com/project/material-ui-docs)
</div>
## Installation
Material-UI is available as an [npm package](https://www.npmjs.com/package/@material-ui/core).
**[Stable channel v4](https://material-ui.com/)**
```sh
// with npm
npm install @material-ui/core
// with yarn
yarn add @material-ui/core
```
**[Alpha channel v5](https://next.material-ui.com/)**
```sh
// with npm
npm install @material-ui/core@next
// with yarn
yarn add @material-ui/core@next
```
**[v3.x](https://v3.material-ui.com/)** ([Migration from v3 to v4](https://material-ui.com/guides/migration-v3/))
**[v0.x](https://v0.material-ui.com/)** ([Migration to v1](https://material-ui.com/guides/migration-v0x/))
Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
## Who sponsors Material-UI?
### Diamond 💎
Diamond Sponsors are those who have pledged \$1,500/month or more to Material-UI.
### Gold 🏆
via [Patreon](https://www.patreon.com/oliviertassinari)
<p style="display: flex; justify-content: center;">
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=homepage" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/tidelift.png?size=96" srcset="https://github.com/tidelift.png?size=192 2x" alt="tidelift" title="Enterprise-ready open source software" loading="lazy" /></a>
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://github.com/teambit.png?size=96" srcset="https://github.com/teambit.png?size=192 2x" alt="bitsrc" title="The fastest way to share code" loading="lazy" /></a>
</p>
via [OpenCollective](https://opencollective.com/material-ui)
<p style="display: flex; justify-content: center; flex-wrap: wrap;">
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="textemall" href="https://www.text-em-all.com" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/callemall/a6946da/logo/96.png" srcset="https://images.opencollective.com/callemall/a6946da/logo/192.png 2x" alt="call-em-all" title="Mass Text Messaging & Automated Calling" height="96" width="96" loading="lazy"></a>
<a data-ga-event-category="sponsor" data-ga-event-action="logo" data-ga-event-label="canadacasino" href="https://www.canadacasino.ca/" rel="noopener sponsored" target="_blank" style="margin-right: 16px;"><img height="96" width="96" src="https://images.opencollective.com/canadacasino/5b19004/logo/96.png" srcset="https://images.opencollective.com/canadacasino/5b19004/logo/192.png 2x" alt="bitsrc" title="" loading="lazy" /></a>
</p>
Gold Sponsors are those who have pledged \$500/month or more to Material-UI.
### There is more!
See the full list of [our backers](https://material-ui.com/discover-more/backers/).
## Usage
Here is a quick example to get you started, **it's all you need**:
```jsx
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:
[](https://codesandbox.io/s/4j7m47vlm4)
## Questions
For _how-to_ questions and other non-issues,
please use [StackOverflow](https://stackoverflow.com/questions/tagged/material-ui) 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](https://material-ui.com/getting-started/example-projects/).
## Documentation
Check out our [documentation website](https://material-ui.com/).
## Premium Themes
You can find complete templates & themes in the [Material-UI store](https://material-ui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=readme-store) .
## Contributing
Read our [contributing guide](/CONTRIBUTING.md) 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](https://material-ui.com/getting-started/faq/#material-ui-is-awesome-how-can-i-support-the-project).
## Changelog
Recently Updated?
Please read the [changelog](https://github.com/mui-org/material-ui/releases).
## Roadmap
The future plans and high priority features and enhancements can be found in the [roadmap](https://material-ui.com/discover-more/roadmap/) file.
## License
This project is licensed under the terms of the
[MIT license](/LICENSE).
## Sponsoring services
These great services sponsor Material-UI's core infrastructure:
[<img loading="lazy" alt="GitHub" src="https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png" height="25">](https://github.com/)
GitHub allows us to host the Git repository.
[<img loading="lazy" alt="CircleCI" src="https://assets.brandfolder.com/otz6k5-cj8pew-e4rk9u/element.png?v=1501538594" height="32">](https://circleci.com/)
CircleCI allows us to run the test suite.
[<img loading="lazy" alt="Netlify" src="https://cdn.netlify.com/15ecf59b59c9d04b88097c6b5d2c7e8a7d1302d0/1b6d6/img/press/logos/full-logo-light.svg" height="30">](https://www.netlify.com/)
Netlify allows us to distribute the documentation.
[<img loading="lazy" alt="CrowdIn" src="https://support.crowdin.com/assets/logos/crowdin-logo1-small.png" height="30">](https://crowdin.com/)
CrowdIn allows us to translate the documentation.
[<img loading="lazy" alt="BrowserStack" src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png" height="30">](https://www.browserstack.com/)
BrowserStack allows us to test in real browsers.
[<img loading="lazy" alt="CodeCov" src="https://github.com/codecov.png?size=70" width="35" height="35">](https://codecov.io/)
CodeCov allows us to monitor the test coverage.