开源软件名称(OpenSource Name):kradio3/react-mdc-web开源软件地址(OpenSource Url):https://github.com/kradio3/react-mdc-web开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):Material components for ReactReact components based on styles from Material Design Components Web project. Components are written in React.js. Doesn't use MDC foundation classes. InstallationFrom CDN <script src="https://unpkg.com/react-mdc-web/out/react-mdc-web.js"></script> From package manager npm i --save react-mdc-web ThemingDefault theme
Custom themeOverride default theme colors with Sass or with CSS Custom Properties, just follow these guides: Usageimport 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 Contribution & Local Development Guide
LicenseMIT, see LICENSE for details |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论