Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/react-mdc/react-material-components-web
React wrapper of Google's Material Components Web
https://github.com/react-mdc/react-material-components-web
javascript material-components material-design npm react typescript
Last synced: 3 months ago
JSON representation
React wrapper of Google's Material Components Web
- Host: GitHub
- URL: https://github.com/react-mdc/react-material-components-web
- Owner: react-mdc
- Archived: true
- Created: 2017-01-21T04:55:00.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2017-10-04T13:10:04.000Z (about 7 years ago)
- Last Synced: 2024-05-21T18:46:39.490Z (6 months ago)
- Topics: javascript, material-components, material-design, npm, react, typescript
- Language: TypeScript
- Homepage: https://react-mdc.github.io/
- Size: 1.08 MB
- Stars: 179
- Watchers: 18
- Forks: 15
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-material-components - react-mdc/react-material-components-web - React.js wrapper typed with TypeScript. (Material Components Web (MDC Web) / MDC Web Framework Integrations)
README
React Material Components Web
=============================[![License: MIT](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)
[![npm version](https://badge.fury.io/js/react-material-components-web.svg)](https://www.npmjs.com/package/react-material-components-web)
[![Build Status](https://img.shields.io/travis/react-mdc/react-material-components-web.svg)](https://travis-ci.org/react-mdc/react-material-components-web)React wrapper of [Material Components Web](
https://github.com/material-components/material-components-web)Under Active Development
------------------------The project is under active development.
Every updates can contain breaking changes before 0.2.0.
We **do not** recommend you to use this library for produciton applications at this time.
Documentation
-------------You can find documentation with live demo at https://react-mdc.github.io/
Features
--------* Typed strictly with [TypeScript](http://typescriptlang.org)
You can access typing support by also using TypeScript
* Stylesheet independent
Since *Material Components Web* can be customized with scss,
it does not depend on specific stylesheet.
You can load your own stylesheet or a default one.* Each component packaged individually
Like *Material Components Web*, You can access all components individually,
under [@react-mdc npm scope](https://www.npmjs.com/%7Ereact-mdc).Getting Start
-------------Install the library
``` bash
$ npm install --save @react-mdc/typography
```Import the stylesheet
``` html
```
Or load using webpack and scss-loader
`my-mdc.scss`
``` scss// My main Sass file.
$mdc-theme-primary: #9c27b0;
$mdc-theme-accent: #76ff03;
$mdc-theme-background: #fff;@import "material-components-web/material-components-web";
```
`app.js`
``` javascript
import * as React from 'react';
import * as ReactDOM from 'react-dom';import "./stylesheets/my-mdc.scss";
import Main from './main.js';ReactDOM.render(, document.getElementById('root'));
```
And import *@react-mdc* then give it a shot.
`main.js`
``` typescriptimport * as React from "react";
import Typography from "@react-mdc/typography";export default class Main extends React.Component<{}, {}> {
render () {
return (
This is an example
Hello world!
);
}
}```
Setup for Development
---------------------Bootstrap
``` shell
$ lerna bootstrap
```
Build
``` shell
$ npm run build
```
Run Docs
--------``` shell
$ cd docs
$ npm start```
Watch for Changes and Build
---------------------------``` shell
$ npm run watch
```
Run Test
--------``` shell
$ npm test
```
to watch
``` shell
$ npm test:watch
```