Socket
Socket
Sign inDemoInstall

bh-react-mdl

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bh-react-mdl

React Components for the Material Design Lite UI framework


Version published
Maintainers
1
Install size
1.46 MB
Created

Readme

Source

React Material Design Lite

WIP NOT PRODUCTION READY

React-MDL is a set of React components build on top of Material Design Lite. It's based on their version 1.0.4.

Requirements

Because of an issue with the original Layout component from MDL that makes it incompatible with React (a fix is already submitted and should land in MDL 2.0), you can't use the original .js and .css files. Instead, I provide you the files with my the fix. (Read this for more information on the issue).

The files are available in this repository inside the /extra/ folder: material.css and material.js

<link rel="stylesheet" href="material.css">
<script src="material.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">

How to use the components

import the entire library

import ReactMDL from 'react-mdl';

var Button = ReactMDL.Button;
var Card = ReactMDL.Card

// or
import { Button, Card, CardText } from 'react-mdl';

import a specific component

import Button from 'react-mdl/lib/Button';
import Card, { CardText, CardActions } from 'react-mdl/lib/card/Card';

How to run the demos

Clone the repository, install the dependencies and run the demo server, then hit http://localhost:8080/demo/ with your favourite browser.

npm install
npm run demo
// go to http://localhost:8080/demo/

Credit

Originally based on react-mdl and mdl

License

MIT

Keywords

FAQs

Last updated on 13 Oct 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc