1.0.8 • Published 1 year ago

react-github-link-button v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

PropTypeDescription
linkstringThe link to the Github repository.
messagestringThe 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.

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago