@feizheng/react-github-corner

1.0.1 • Public • Published

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

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

usage

  1. import css
@import "~@feizheng/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 '@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.

/@feizheng/react-github-corner/

    Package Sidebar

    Install

    npm i @feizheng/react-github-corner

    Weekly Downloads

    9

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    20.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • afeiship