reactivers
v0.1.0
Published
React-Material-Design-Web includes all recommended components and some extra components may need to you use.
Downloads
2
Readme
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;