0.17.0 • Published 7 years ago
react-mdc-web v0.17.0
Material components for React
React components based on styles from Material Design Components Web project. Components are written in React.js. Doesn't use MDC foundation classes.
Installation
From CDN
<script src="https://unpkg.com/react-mdc-web/out/react-mdc-web.js"></script>
From package manager
npm i --save react-mdc-web
Theming
Default theme
- Include CSS with default theme into HTML page
<link rel="stylesheet" href="https://unpkg.com/material-components-web@0.23.0/dist/material-components-web.min.css">
- Or import it into JS/JSX file
// MyApp/index.js import 'material-components-web/dist/material-components-web.min.css';
Custom theme
Override default theme colors with Sass or with CSS Custom Properties, just follow these guides:
Usage
import React, { Component } from 'react'
import {Card, CardHeader, CardTitle, CardText, CardActions, Button} from 'react-mdc-web/lib';
class MyComponent extends Component {
render() {
return (
<Card>
<CardHeader>
<CardTitle>
Title goes here
</CardTitle>
</CardHeader>
<CardText>
Lorem ipsum dolor sit amet, sint adipiscing ius eu
</CardText>
<CardActions>
<Button compact>Save</Button>
<Button compact accent>Remove</Button>
</CardActions>
</Card>
);
}
}
More samples could be found on the Documentation Site
License
MIT, see LICENSE for details
0.17.0
7 years ago
0.16.0
8 years ago
0.15.1
8 years ago
0.15.0
8 years ago
0.14.0
8 years ago
0.13.0
8 years ago
0.12.2
8 years ago
0.12.0
8 years ago
0.11.0
8 years ago
0.10.1
8 years ago
0.10.0
8 years ago
0.9.0
8 years ago
0.8.0
8 years ago
0.7.1
8 years ago
0.7.0
8 years ago
0.6.0
8 years ago
0.5.1
8 years ago
0.5.0
8 years ago
0.4.5
8 years ago
0.4.4
8 years ago
0.4.3
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago