Skip to content

afeiship/react-github-corner

Repository files navigation

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: ()
  1. 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.