1.0.1 • Published 4 years ago

@feizheng/react-github-corner v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-github-corner

Github corner for react.

version license size download

installation

npm install -S @feizheng/react-github-corner

update

npm update @feizheng/react-github-corner

properties

NameTypeRequiredDefaultDescription
classNamestringfalse-The extended className for component.
valuestringfalse-Default value.

usage

  1. import css

    @import "~@feizheng/react-github-corner/dist/style.scss";
    
    // customize your styles:
    $react-github-corner-options: ()
  2. import js

    import React from 'react';
    import ReactDOM from 'react-dom';
    import ReactGithubCorner from '@feizheng/react-github-corner';
    import './assets/style.scss';
    
    class App extends React.Component {
      componentDidMount() {}
      render() {
        return (
          <div className="app-container">
            <ReactGithubCorner value="https://github.com/afeiship" />
          </div>
        );
      }
    }
    
    ReactDOM.render(<App />, document.getElementById('app'));

documentation

license

Code released under the MIT license.