Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 2.33 KB

README.md

File metadata and controls

70 lines (50 loc) · 2.33 KB

logo

A React component to add a GitHub corner to your project.

NPM Version NPM Downloads Minizip Contributors License

Live demo

Live Demo

Installation

NPM

Install

npm i react-gh-corners@latest

Use

import { GithubCorners } from 'react-gh-corners';

// Nextjs only CSR
const GithubCorners = dynamic(() => import('react-gh-corners').then((m) => m.GithubCorners), {
  ssr: false,
});


const App = () => {
  return (
    <GithubCorners position='right' href='/' />
  );
};

Package

import 'gh-corners';

unpkg.com CDN:

<script type="module" src="https://unpkg.com/gh-corners@latest"></script>

HTML

<github-corners target="__blank" position="fixed" href="https://github.com/hunghg255"></github-corners>

About

Buy Me A Coffee

Gia Hung – hung.hg