1.0.2 • Published 2 years ago

github-to-source v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Github To Source

Simple react component to put repository link on bottom right of page

Installation

npm i github-to-source

Props

PropTypeDescription
repoLinkStringLink to github repository
colorStringColor of github logo
sizeStringSize of github logo
targetStringTarget attribute for anchor
textStringText after github logo
textStylesObjectStyle for text

Default

npm.io

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

npm.io