Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

React portals + Github corners + Styled component = 💘
https://github.com/zzarcon/react-gh-corner

gh gh-corner gh-pages github github-corner github-pages portal react react-dom react-portal

Last synced: about 2 months ago
JSON representation

React portals + Github corners + Styled component = 💘

Awesome Lists containing this project

README

        

# react-gh-corner [![Build Status](https://travis-ci.org/zzarcon/react-gh-corner.svg?branch=master)](https://travis-ci.org/zzarcon/react-gh-corner)
> React portals + Github corners + Styled component = 💘


demo



# Demo 🍿

[https://zzarcon.github.io/react-gh-corner](https://zzarcon.github.io/react-gh-corner)

# Install 🚀

```
$ yarn add react-gh-corner
```

# Usage ⛏

**Basic**

```tsx
import GHCorner from 'react-gh-corner';

```

**Custom**

```tsx
import GHCorner from 'react-gh-corner';

```

# Api 📚

```ts
type CornerPosition = 'top-right' | 'top-left';

interface Props {
href: string;
position?: CornerPosition;
bgColor?: string;
size?: number;
ariaLabel?: string;
openInNewTab?: boolean;
}
```

See [example/](https://github.com/zzarcon/react-gh-corner/tree/master/example) for full example.

# Author

[@zzarcon](https://twitter.com/zzarcon)