react-github-link-button

1.0.8 • Public • Published

React Github Link Button

NPM version

A React component that displays a Github button, which redirects to the specified repository link and displays a message on hover.

Installation

npm install react-github-link-button

This package has no dependencies and is fully typed with TypeScript.

Usage

import { GithubButton } from 'react-github-link-button/dist';

function App() {
  return (
    <div className="App">
      <GithubButton link="https://github.com/" message="Go to Github" />
    </div>
  );
}

Props

Prop Type Description
link string The link to the Github repository.
message string The message to display on hover.

Example

A running example can be found in the "example" folder in this repository.

Limitations

The hover box has predefined dimensions, so it is recommended to use short messages.

License

This project is licensed under the ISC License.

Issues and Contributions

If you find any issues or have questions about this library, feel free to create a pull request in the Github repository.

Readme

Keywords

none

Package Sidebar

Install

npm i react-github-link-button

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

6.39 kB

Total Files

13

Last publish

Collaborators

  • andresbueno043