You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<code>react-github-fork-banner</code> 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.
4
16
5
17
#
@@ -32,6 +44,7 @@ function App() {
32
44
<GithubForkBanner
33
45
direction=""
34
46
size={}
47
+
animation=""
35
48
customHref="https://github.com/username/repo"
36
49
bannerColor=""
37
50
octoColor=""
@@ -47,13 +60,14 @@ Fill in the missing values for each property.
47
60
48
61
These are the properties that can be added:
49
62
50
-
| Property Name | Type | Default Value | Values you can use | Description |
| direction | String | 'right' | "left" and "right". | Define the Banner direction. |
53
-
| size | Number | 98 | Only numeric type values | Define the width and height of the Banner. |
54
-
| customHref | String | '/' | Links href | This 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. |
55
-
| bannerColor | String | '#000' | HEX, HSL, CSS( RGB & RGBA ) | Define the color of the Banner. |
56
-
| octoColor | String | '#fff' | HEX, HSL, CSS( RGB & RGBA ) | Defines the color of the Octocat. |
63
+
| Property Name | Type | Default Value | Values you can use | Description |
| direction | String | 'right' | "left" and "right" | Define the Banner direction. |
66
+
| size | Number | 98 | Only numeric type values | Define the width and height of the Banner. |
67
+
| animation | String | none | left-ear, right-ear, ears, tail, tail-&-leftEar, tail-&-rightEar, all | Define the Octocat animation. |
68
+
| customHref | String | '/' | Links href | This 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. |
69
+
| bannerColor | String | '#000' | HEX, HSL, CSS( RGB & RGBA ) | Define the color of the Banner. |
70
+
| octoColor | String | '#fff' | HEX, HSL, CSS( RGB & RGBA ) | Defines the color of the Octocat. |
0 commit comments