react-mcw

0.1.3 • Public • Published

Material Design Web For React

This repository is under development!

Description

React-MCW Web includes all recommended components and some extra components may need to you use.

Requirements

To use React-MCW you need to add the following codes into index.html.

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

Installation

$ npm install --save react-mcw
$ npm install --save-dev sass-loader css-loader style-loader node-sass
$ npm start

Webpack.config.js

 module: {
    loaders: [{
      test:/\.(js|jsx)$/,
      exclude: /node_modules/,
      loader: 'babel',
      query: {
        presets: ['react', 'es2015', 'stage-1']
      }
    },{
        test:/\.css$/,
        loader: 'style!css'
    },{
        test:/\.scss$/,
        loader: 'style!css!sass'
    }]
  },

Usage

import {FABMenu, Card, CardBody} from 'react-mcw';
import IconButton from 'react-mcw/lib/IconButton';

Here is a quick example to get you started:

index.js

import React from 'react';
import ReactDOM from 'react-dom';
import App from './appPages/App';

ReactDOM.render(
  <App />,
  document.getElementById('root')
);

App.js

import React from 'react';
import {FABMenu} from 'react-mcw'


const App = () => {
    return (
            <FABMenu showAdd={1}
                     showCopy={2}
                     showDelete={3}
                     showPeopleAdd={4}
                     showSearch={5}
                     onAdd={() => console.log("Whatever you want!")}
            />
    );
};

export default App;

Readme

Keywords

none

Package Sidebar

Install

npm i react-mcw

Weekly Downloads

0

Version

0.1.3

License

none

Last publish

Collaborators

  • reactivers