React Github Corners
Demo
Install
npm i react-gh-corners@latest
Use
tsx
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
js
import 'gh-corners';
unpkg.com CDN:
js
<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
Gia Hung – hung.hg