1.1.3 • Published 2 years ago

react-github-fork-banner v1.1.3

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

React GitHub Fork Banner

react-github-fork-banner is an npm package that allows you to add a github banner with a link linked to your project's fork or repository. You can give it a super custom use as a normal react component.

Installation 🔨

To use this package in your project, you must install it via npm or yarn, depending on what you use.

# Using npm
npm install --save react-github-fork-banner@latest

# Using yarn
yarn add react-github-fork-banner@latest

Usage 🚀

import React from 'react';
import { GithubForkBanner } from 'react-github-fork-banner';

function App() {
  return (
    <>
      <header>My App</header>

      <GithubForkBanner
        direction=""
        size={}
        animation=""
        customHref="https://github.com/username/repo"
        bannerColor=""
        octoColor=""
      />
    </>
  );
}

export default App;

Fill in the missing values for each property.

These are the properties that can be added:

Property NameTypeDefault ValueValues you can useDescription
directionString'right'"left" and "right"Define the Banner direction.
sizeNumber98Only numeric type valuesDefine the width and height of the Banner.
animationStringnoneleft-ear, right-ear, ears, tail, tail-&-leftEar, tail-&-rightEar, allDefine the Octocat animation.
customHrefString'/'Links hrefThis field is mandatory, you will get an error if you do not add its value, this to avoid giving an inadequate and useless use to the component.
bannerColorString'#000'HEX, HSL, CSS( RGB & RGBA )Define the color of the Banner.
octoColorString'#fff'HEX, HSL, CSS( RGB & RGBA )Defines the color of the Octocat.

Keep in touch with me ✨

License 🔑

This project is licensed under MIT license.