Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@jswork/react-github-corner

afeiship4MIT1.0.1

Github corner for react.

react, github, corner

readme

react-github-corner

Github corner for react.

version license size download

installation

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

properties

Name Type Required Default Description
className string false - The extended className for component.
value string false - Default value.

usage

  1. import css

    @import "~@jswork/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 '@jswork/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.