Skip to content

tengine/blocks-util-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blocks-util-js

Demo

Installation

Install the git remote url only.

latest:

yarn add https://github.com/tengine/blocks-util-js/

specific:

yarn add https://github.com/tengine/blocks-util-js#<commit-ish>

dependencies

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {
  defaultTheme,
  FlatButton
} from 'blocks-util-js';

class Main extends React.Component {
  render() {
    return (
      <MuiThemeProvider muiTheme={defaultTheme}>
        <FlatButton label="Label" />
      </MuiThemeProvider>
    );
  }
}

ReactDOM.render(<Main />, document.getElementById('container'));

Development

git clone [email protected]:tengine/blocks-util-js.git
npm install

production build:

npm run build

development build:

npm run storybook

Update GitHub Pages (Demo):

npm run deploy-storybook

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published