react-ghfork

GitHub fork image for React

MIT 16 个版本
安装
npm install react-ghfork
yarn add react-ghfork
pnpm add react-ghfork
bun add react-ghfork
README

build status

react-ghfork - GitHub fork image for React

This component wraps GitHub fork ribbon CSS by Simon Whitaker into a React component behind a simple API:

var Fork = require('react-ghfork');

require('react-ghfork/gh-fork-ribbon.ie.css'); // ie support
require('react-ghfork/gh-fork-ribbon.css');

...

module.exports = function() {
    var project = 'bebraw/react-ghfork';

    return <article>
        <Fork project={project} className='left'></Fork>
        <Fork project={project} className='right' style={{
            backgroundColor: '#000'
        }}></Fork>
        <Fork project={project} className='left-bottom' style={{
            backgroundColor: '#060'
        }}></Fork>
        <Fork project={project} className='right-bottom' text='Forkkaa minut'></Fork>

        <div dangerouslySetInnerHTML={{__html: readme}}></div>
    </article>;
};

Acknowledgements

Styling by Simon Whitaker (MIT). This library just wraps his work.

License

react-ghfork is available under MIT. See LICENSE for more details.

版本列表
0.5.2 2019-04-10
0.5.1 2017-10-04
0.5.0 2017-10-04
0.4.0 2017-10-02
0.3.5 2016-07-05
0.3.4 2016-07-04
0.3.3 2016-04-08
0.3.2 2015-07-28
0.3.1 2015-07-28
0.3.0 2015-04-02
0.2.2 2015-02-27
0.2.1 2015-01-31
0.2.0 2015-01-30
0.1.2 2015-01-28
0.1.1 2015-01-28
0.1.0 2015-01-28