rg

react-ghfork

GitHub fork image for React (MIT)

Showing:

Popularity

Downloads/wk

1

GitHub Stars

5

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial