New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

reactivers

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactivers

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

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Material Design Web For React

This repository is under development!

Description

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

Requirements

To use React-Material-Design 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-material-design
$ 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 'reac-material-design';
import IconButton from 'react-material-design/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-material-design'


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

export default App;

FAQs

Package last updated on 28 Apr 2017

Did you know?

Socket

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