# react-mdl **Repository Path**: mirrors_gaearon/react-mdl ## Basic Information - **Project Name**: react-mdl - **Description**: React Components for Material Design Lite - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # [React-MDL][react-mdl-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coverage-image]][coverage-url] React-MDL is a set of React components build on top of [Material Design Lite][google-mdl-url] v1.2.0 Join the #react-mdl channel of the [Reactiflux Discord][discord-url] community. ## Requirements Instead of using the official `material.css` and `material.js` files from the MDL project, you should use the files we provide in [/extra](/extra/). The reason to that is because the official `Layout` component is not fully compatible with React. We made a patch and we re-exported everything so people can still use it. If you're worried about the changes we made, you can take a look at the [patch note](/extra/layout-patch.diff) or read about the issue in [this ticket](https://github.com/google/material-design-lite/issues/1356). ```html ``` ## Installation `npm install --save react-mdl` ## Usage You can use React-MDL through a bundler like [webpack][webpack-url] or [browserify][browserify-url] by importing `react-mdl` in your application: ```js import { Button, Card, CardText } from 'react-mdl'; // or... import Button from 'react-mdl/lib/Button'; import { Card, CardText, CardActions } from 'react-mdl/lib/Card'; ``` Alternatively, you can include `node_modules/react-mdl/out/ReactMDL.js` as a script, but you'll likely want to copy it to a folder outside of `node_modules` first, such as `lib` or `vendor`. Then a global `ReactMDL` will be available: ```js const { Button, Card, CardText } = ReactMDL; ``` For a listing of available components, as well as specific usage information, check out the [Components][react-mdl-components-url] page on the website. ## License MIT, see [LICENSE.md](/LICENSE.md) for details. [react-mdl-url]: https://tleunen.github.io/react-mdl/ [react-mdl-components-url]: https://tleunen.github.io/react-mdl/components/ [webpack-url]: https://webpack.github.io/ [browserify-url]: http://browserify.org/ [ci-image]: https://circleci.com/gh/tleunen/react-mdl.svg?style=shield [ci-url]: https://circleci.com/gh/tleunen/react-mdl [coverage-image]: https://codecov.io/gh/tleunen/react-mdl/branch/master/graph/badge.svg [coverage-url]: https://codecov.io/gh/tleunen/react-mdl [google-mdl-url]: https://github.com/google/material-design-lite [discord-url]: https://discord.gg/0ZcbPKXt5bWTpxL5