@material-ui/core
Version:
React components that implement Google's Material Design.
178 lines (114 loc) • 9.86 kB
Markdown
<p align="center">
<a href="https://material-ui.com/" rel="noopener" target="_blank"><img width="150" src="https://material-ui.com/static/images/material-ui-logo.svg" alt="Material-UI logo"></a></p>
</p>
<h1 align="center">Material-UI</h1>
<div align="center">
[React](https://reactjs.org/) components that implement [Google's Material Design](https://www.google.com/design/spec/material-design/introduction.html).
[](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://spectrum.chat/material-ui)
[](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 -ui/core
// with yarn
yarn add -ui/core
```
**[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 ` ` will only point to pre-releases; to get the latest stable release use ` ` instead.
## Supporting Material-UI
Material-UI is an MIT-licensed open source project. It's an independent project with ongoing development made possible thanks to the support of these awesome [backers](/BACKERS.md). If you'd like to join them, please consider:
- [Become a backer or sponsor on Patreon](https://www.patreon.com/oliviertassinari).
- [Become a backer or sponsor on OpenCollective](https://opencollective.com/material-ui).
#### What's the difference between Patreon and OpenCollective?
Funds donated via Patreon directly support [Olivier Tassinari](https://github.com/oliviertassinari)'s work on Material-UI.
Funds donated via OpenCollective are managed transparently and will be used for compensating work and expenses for core team members.
Your name/logo will receive proper recognition and exposure by donating on either platform.
### Gold Sponsors
Gold Sponsors are those who have pledged $500/month and more to Material-UI.
via [Patreon](https://www.patreon.com/oliviertassinari)
<p style="display: flex; justify-content: center;">
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="creative-tim" href="https://www.creative-tim.com/?partner=104080" rel="noopener nofollow" target="_blank" style="margin-right: 16px;"><img width="126" src="https://github.com/creativetimofficial.png?size=126" alt="creative-tim" title="Premium Themes"></a>
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="tidelift" href="https://tidelift.com/subscription/pkg/npm-material-ui?utm_source=material_ui&utm_medium=referral&utm_campaign=homepage" rel="noopener nofollow" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/tidelift.png?size=96" alt="tidelift" title="Get Professionally Supported Material-UI"></a>
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="bitsrc" href="https://bit.dev" rel="noopener nofollow" target="_blank" style="margin-right: 16px;"><img width="96" src="https://github.com/teambit.png?size=96" alt="bitsrc" title="The fastest way to share code"></a>
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="blokt" href="https://blokt.com/" rel="noopener nofollow" target="_blank" style="margin-right: 16px;"><img width="96" src="https://material-ui.com/static/images/blokt.jpg" alt="blokt" title="Leading Cryptocurrency News"></a>
</p>
via [OpenCollective](https://opencollective.com/material-ui)
<p style="display: flex; justify-content: center; flex-wrap: wrap;">
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="callemall" href="https://www.call-em-all.com" rel="noopener nofollow" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2Ff4053300-e0ea-11e7-acf0-0fa7c0509f4e.png&height=100" alt="callemall" title="The easy way to message your group"></a>
<a data-ga-event-category="sponsors" data-ga-event-action="logo" data-ga-event-label="localize" href="https://localizejs.com" rel="noopener nofollow" target="_blank" style="margin-right: 16px;"><img src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2F629dea80-f1ae-11e8-b356-a5942970e22b.png&height=65" alt="localize" title="Application translation & localization platform"></a>
</p>
### 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 '-ui/core/Button';
function App() {
return (
<Button variant="contained" color="primary">
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 our [premium themes](https://themes.material-ui.com/) section.
## Contributing
We'd greatly appreciate any [contribution](/CONTRIBUTING.md) you make. :)
## 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.md](https://material-ui.com/discover-more/roadmap/) file.
## Thanks
Material-UI is only made possible thanks to these great services that sponsor our core infrastructure:
[<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png" width="100">](https://github.com/)
GitHub allows us to host the Git repository.
[<img src="https://assets.brandfolder.com/otz6k5-cj8pew-e4rk9u/element.png?v=1501538594" width="120">](https://circleci.com/)
CircleCI allows us to run the test suite.
[<img src="https://cdn.netlify.com/15ecf59b59c9d04b88097c6b5d2c7e8a7d1302d0/1b6d6/img/press/logos/full-logo-light.svg" width="120">](https://www.netlify.com/)
Netlify allows us to distribute the documentation.
[<img src="https://support.crowdin.com/assets/logos/crowdin-logo1-small.png" width="120">](https://crowdin.com/)
CrowdIn allows us to translate the documentation.
[<img src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png" width="120">](https://www.browserstack.com/)
BrowserStack allows us to test in real browsers.
[<img src="https://raw.githubusercontent.com/codecov/media/master/logos/icon-50.png" height="30">](https://codecov.io/)
CodeCov allows us to monitor the test coverage.
## License
This project is licensed under the terms of the
[MIT license](/LICENSE).
## Security
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.