npm

Need private packages and team management tools?Check out npm Orgs. »

react-gh-corner

1.1.2 • Public • Published

react-gh-corner Build Status

React portals + Github corners + Styled component = 💘

Demo 🍿

https://zzarcon.github.io/react-gh-corner

Install 🚀

$ yarn add react-gh-corner

Usage ⛏

Basic

import GHCorner from 'react-gh-corner';
 
<GHCorner href="https://github.com/zzarcon/react-gh-corner" />

Custom

import GHCorner from 'react-gh-corner';
 
<GHCorner
  href="https://github.com/zzarcon/react-gh-corner"
  positon="top-right"
  bgColor="hotpink"
  size={250}
  ariaLabel="Check my project"
/>

Api 📚

type CornerPosition = 'top-right' | 'top-left';
 
interface Props {
  href: string;
  position?: CornerPosition;
  bgColor?: string;
  size?: number;
  ariaLabel?: string;
}

See example/ for full example.

install

npm i react-gh-corner

Downloadsweekly downloads

26

version

1.1.2

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability