Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/material-components/material-components-web
Modular and customizable Material Design UI components for the web
https://github.com/material-components/material-components-web
css javascript material-components material-design web
Last synced: 8 days ago
JSON representation
Modular and customizable Material Design UI components for the web
- Host: GitHub
- URL: https://github.com/material-components/material-components-web
- Owner: material-components
- License: mit
- Created: 2016-12-05T16:04:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T20:51:33.000Z (13 days ago)
- Last Synced: 2024-10-24T08:44:10.771Z (13 days ago)
- Topics: css, javascript, material-components, material-design, web
- Language: TypeScript
- Homepage: https://material.io/develop/web
- Size: 86.5 MB
- Stars: 17,142
- Watchers: 374
- Forks: 2,147
- Open Issues: 509
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Support: docs/supported-browsers.md
Awesome Lists containing this project
- stars - material-components/material-components-web
- awesome - material-components/material-components-web - Modular and customizable Material Design UI components for the web (TypeScript)
- awesome - material-components/material-components-web - Modular and customizable Material Design UI components for the web (TypeScript)
- awesome-starred - material-components-web - Modular and customizable Material Design UI components for the web (TypeScript)
- Awesome-CSS-Resources - material-components-web:
- awesome-starts - material-components/material-components-web - Modular and customizable Material Design UI components for the web (TypeScript)
- awesome-list - material-components-web - components | 15691 | (TypeScript)
- fucking-awesome-css-frameworks - Repo
- awesome-material-components - Official GitHub Repo
- awesome-css - Material-components-web - Modular and customizable Material Design UI components for the web. (Frameworks :art: / Editor's Draft :black_nib:)
- awesome-css-frameworks - Repo
- awesome - material-components/material-components-web - Modular and customizable Material Design UI components for the web (TypeScript)
- StarryDivineSky - material-components/material-components-web
- awesome - material-components/material-components-web - Modular and customizable Material Design UI components for the web (TypeScript)
- awesome - material-components/material-components-web - Modular and customizable Material Design UI components for the web (TypeScript)
README
[![Version](https://img.shields.io/npm/v/material-components-web.svg)](https://www.npmjs.com/package/material-components-web)
[![Chat](https://img.shields.io/discord/259087343246508035.svg)](https://discord.gg/material-components)# Material Components for the web
Material Components for the web helps developers execute [Material Design](https://www.material.io).
Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional web projects.Material Web strives to seamlessly incorporate into a wider range of usage contexts, from simple static websites to complex, JavaScript-heavy applications to hybrid client/server rendering systems. In short, whether you're already heavily invested in another framework or not, it should be easy to incorporate Material Components into your site in a lightweight, idiomatic fashion.
Material Components for the web is the successor to [Material Design Lite](https://getmdl.io/). In addition to implementing the [Material Design guidelines](https://material.io/design), it provides more flexible theming customization, not only in terms of color, but also typography, shape, states, and more. It is also specifically [architected](docs/code/architecture.md) for adaptability to various [major web frameworks](docs/framework-wrappers.md).
> NOTE: Material Components Web tends to release breaking changes on a monthly basis, but follows
> [semver](https://semver.org/) so you can control when you incorporate them.
> We typically follow a 2-week release schedule which includes one major release per month with breaking changes,
> and intermediate patch releases with bug fixes.## Important links
- [Getting Started Guide](docs/getting-started.md)
- [Demos](https://material-components.github.io/material-components-web-catalog) (external site)
- [Material on other frameworks](docs/framework-wrappers.md)
- [Examples using Material Web](docs/examples.md)
- [Contributing](CONTRIBUTING.md)
- [Material Design Guidelines](https://material.io/design) (external site)
- [Supported browsers](docs/supported-browsers.md)
- [All Components](packages/)
- [Changelog](./CHANGELOG.md)## Quick start
### Using via CDN
```html
Label
mdc.textField.MDCTextField.attachTo(document.querySelector<HTMLElement>('.mdc-text-field'));
```
> Please see [quick start demo](https://codepen.io/abhiomkar/pen/gQWarJ) on codepen for full example.
### Using NPM
> This guide assumes you have webpack configured to compile Sass into CSS. To configure webpack, please see the full [getting started guide](docs/getting-started.md). You can also see the final code and result in the [Material Starter Kit](https://glitch.com/~material-starter-kit).
Install textfield node module to your project.
```
npm install @material/textfield
```#### HTML
Sample usage of text field component. Please see [Textfield](packages/mdc-textfield) component page for more options.
```html
Label
```
#### CSS
Load styles required for text field component.
```scss
@use "@material/floating-label/mdc-floating-label";
@use "@material/line-ripple/mdc-line-ripple";
@use "@material/notched-outline/mdc-notched-outline";
@use "@material/textfield";@include textfield.core-styles;
```
#### JavaScript
Import `MDCTextField` module to instantiate text field component.
```js
import {MDCTextField} from '@material/textfield';
const textField = new MDCTextField(document.querySelector('.mdc-text-field'));
```This'll initialize text field component on a single `.mdc-text-field` element.
> Please see [quick start demo](https://glitch.com/edit/#!/remix/new-web) on glitch for full example.
## Need help?
We're constantly trying to improve our components. If Github Issues don't fit your needs, then please visit us on our [Discord Channel](https://discord.gg/material-components).