Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Lean Material Design React Components

NotificationsYou must be signed in to change notification settings

FredericHeem/mdlean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lean Material UI - a fit good looking material design component library

See thelive demo to find out more about these react components.

Here are the main objectives for these react components:

  • Components must be optimised for size.
  • Components can be imported individually.
  • Real-time theming.
  • Compatible withcreate-react-app based app, ejection free.
  • Webpack config free, no need to install and configuresass orstylus.

Installation

$ npm i --save mdlean

Components

Button

importReact,{Component}from"react";importbuttonfrom"mdlean/lib/button";importthemefrom"mdlean/lib/theme";constcontext={theme:theme(),};constButton=button(context);classAppextendsComponent{render(){return(<div><h3>FlatButton</h3><Buttonprimaryrippleraisedlabel="FLAT LABEL"/><Buttonrippleraisedaccent>          RIPPLE RAISED ACCENT</Button></div>);}}

A complete runnable example can be found atEdit r09GLRDw4

Release a new version

The packagenp, which stands fornpm publish, is a nifty tool which help to release a new version.

Ensure the branchmaster is up to date:

git checkout mastergit pull

Invokenp through thenpm scripts;

npm run np

Npm link

When this lib is linked, avoid theinvalid hook call warning with:

npm linknpm link ../myapp/node_modules/reactcd ../myappnpm link mdlean

[8]ページ先頭

©2009-2025 Movatter.jp