Giter Site home page Giter Site logo

gregoor / react-mdl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tleunen/react-mdl

0.0 2.0 0.0 813 KB

React Components wrapper for Material Design Lite UI

Home Page: http://tleunen.github.io/react-mdl/

License: MIT License

CSS 55.94% JavaScript 43.91% Shell 0.15%

react-mdl's Introduction

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

Join the #react-mdl channel of the Reactiflux Discord community.

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';

License

MIT, see LICENSE.md for details.

react-mdl's People

Contributors

tleunen avatar faergeek avatar slybridges avatar greenkeeperio-bot avatar peterssonjesper avatar kuirak avatar sarink avatar darkyen avatar durandj avatar janpieterz avatar jlc467 avatar metalmatze avatar skeskinen avatar timkrins avatar koorchik avatar

Watchers

James Cloos avatar Gregor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.