github-to-source
v1.0.2
Published
react component to link to github repository
Downloads
10
Maintainers
Readme
Github To Source
Simple react component to put repository link on bottom right of page
Installation
npm i github-to-sourceProps
| Prop | Type | Description | | --- | --- | --- | | repoLink | String | Link to github repository | color | String | Color of github logo | size | String | Size of github logo | target | String | Target attribute for anchor | text | String | Text after github logo | textStyles | Object | Style for text
Default

Usage
import { GithubToSource } from "github-to-source";
export function App(){
return (
<GithubToSource
repoLink="https://github.com/EricL132/github-to-source.git"
target="_blank"
rel="noreferrer"
color="36a3de"
size="30"
text="Open to Repository"
textStyles={{color:"#7ade36",fontWeight:700}}
>
</GithubToSource>
)
}With above props

