A React component that displays a Github button, which redirects to the specified repository link and displays a message on hover.
npm install react-github-link-button
This package has no dependencies and is fully typed with TypeScript.
import { GithubButton } from 'react-github-link-button/dist';
function App() {
return (
<div className="App">
<GithubButton link="https://github.com/" message="Go to Github" />
</div>
);
}
Prop | Type | Description |
---|---|---|
link | string | The link to the Github repository. |
message | string | The message to display on hover. |
A running example can be found in the "example" folder in this repository.
The hover box has predefined dimensions, so it is recommended to use short messages.
This project is licensed under the ISC License.
If you find any issues or have questions about this library, feel free to create a pull request in the Github repository.