0.47.0 • Published 1 year ago

mdlean v0.47.0

Weekly downloads
33
License
Apache-2.0
Repository
github
Last release
1 year ago

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

See the live 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 with create-react-app based app, ejection free.
  • Webpack config free, no need to install and configure sass or stylus.

Installation

$ npm i --save mdlean

Components

Button

import React, { Component } from "react";
import button from "mdlean/lib/button";
import theme from "mdlean/lib/theme";

const context = {
  theme: theme(),
};

const Button = button(context);

class App extends Component {
  render() {
    return (
      <div>
        <h3>FlatButton </h3>
        <Button primary ripple raised label="FLAT LABEL" />
        <Button ripple raised accent>
          RIPPLE RAISED ACCENT
        </Button>
      </div>
    );
  }
}

A complete runnable example can be found at Edit r09GLRDw4

Release a new version

The package np, which stands for npm publish, is a nifty tool which help to release a new version.

Ensure the branch master is up to date:

git checkout master
git pull

Invoke np through the npm scripts;

npm run np

Npm link

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

npm link
npm link ../myapp/node_modules/react
cd ../myapp
npm link mdlean
0.46.0

1 year ago

0.47.0

1 year ago

0.44.0

3 years ago

0.43.0

3 years ago

0.42.0

3 years ago

0.40.0

3 years ago

0.41.0

3 years ago

0.39.0

3 years ago

0.38.0

3 years ago

0.37.0

3 years ago

0.36.0

3 years ago

0.35.0

3 years ago

0.34.0

3 years ago

0.32.0

3 years ago

0.31.0

3 years ago

0.30.0

3 years ago

0.29.0

3 years ago

0.28.0

3 years ago

0.27.0

3 years ago

0.26.0

3 years ago

0.25.2

3 years ago

0.25.1

3 years ago

0.25.0

3 years ago

0.24.0

3 years ago

0.23.0

4 years ago

0.22.0

4 years ago

0.21.0

5 years ago

0.20.0

5 years ago

0.19.0

5 years ago

0.17.0

5 years ago

0.16.0

5 years ago

0.15.0

6 years ago

0.14.0

6 years ago

0.13.0

6 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.0

6 years ago

0.9.0

6 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago