Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@material-ui/core
Advanced tools
Quickly build beautiful React apps. Material-UI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.
The @material-ui/core 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, from simple buttons and text fields to complex navigation and layout patterns.
Buttons
This feature allows developers to use Material Design styled buttons in their applications, with various customization options such as colors, variants, and sizes.
import React from 'react';
import Button from '@material-ui/core/Button';
function App() {
return <Button variant='contained' color='primary'>Hello World</Button>;
}
Text Fields
Text Fields are used for inputting text data. The @material-ui/core library provides a Material Design styled TextField component with various styles and customization options.
import React from 'react';
import TextField from '@material-ui/core/TextField';
function App() {
return <TextField label='Outlined' variant='outlined' />;
}
Grid Layout
The Grid component allows for the implementation of responsive layouts. It uses a 12-column grid system and supports various configuration options for alignment, spacing, and more.
import React from 'react';
import Grid from '@material-ui/core/Grid';
function App() {
return (
<Grid container spacing={3}>
<Grid item xs={12}>
<div>Full-width</div>
</Grid>
<Grid item xs={6}>
<div>Half-width</div>
</Grid>
</Grid>
);
}
Ant Design (antd) is a design system and React UI library that offers a high-quality set of components. It is similar to @material-ui/core in providing a comprehensive suite of UI components but follows the Ant Design specifications. Ant Design tends to have a more enterprise look and feel compared to Material-UI's more general Material Design approach.
React-Bootstrap is a React component library that rebuilds the Bootstrap components with React. It offers similar functionalities to @material-ui/core in terms of providing a set of ready-to-use components designed according to the Bootstrap framework. While @material-ui/core is based on Material Design, React-Bootstrap is based on Bootstrap, offering a different design philosophy and aesthetic.
Chakra UI is a simple, modular, and accessible component library that gives you the building blocks to build your React applications. It is similar to @material-ui/core in providing a wide range of components but focuses more on simplicity and accessibility. Chakra UI also offers a more modern and minimalistic design compared to the Material Design of @material-ui/core.
Quickly build beautiful React apps. Material-UI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.
Material-UI is available as an npm package.
// with npm
npm install @material-ui/core
// with yarn
yarn add @material-ui/core
ā ļø All ongoing work has moved to v5. The development of v4 is limited to important bug fixes, security patches and easing the upgrade path to v5.
// with npm
npm install @material-ui/core@next @emotion/react @emotion/styled
// with yarn
yarn add @material-ui/core@next @emotion/react @emotion/styled
Please note that @next
will only point to pre-releases; to get the latest stable release use @latest
instead.
Diamond Sponsors are those who have pledged $1,500/month or more to Material-UI.
via Patreon
via OpenCollective
Direct
Gold Sponsors are those who have pledged $500/month or more to Material-UI.
See the full list of our backers.
Here is a quick example to get you started, it's all you need:
import * as 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:
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.
Are you looking for an example project to get started? We host some.
Check out our documentation website.
You can find complete templates & themes in the Material-UI store.
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.
If you have recently updated, please read the changelog for details of what has changed.
The future plans and high priority features and enhancements can be found in the roadmap file.
This project is licensed under the terms of the MIT license.
These great services sponsor Material-UI's core infrastructure:
GitHub allows us to host the Git repository.
Netlify allows us to distribute the documentation.
CrowdIn allows us to translate the documentation.
BrowserStack allows us to test in real browsers.
CodeCov allows us to monitor the test coverage.
FAQs
React components that implement Google's Material Design.
The npm package @material-ui/core receives a total of 989,678 weekly downloads. As such, @material-ui/core popularity was classified as popular.
We found that @material-ui/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Ā It has 8 open source maintainers collaborating on the project.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.