1.0.3 • Published 4 months ago

@yukiniro/react-github-corners v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

React Github Corners

npm GitHub License

SSR friendly React component for Github Corners that can add a Github Corner to your React project.

Installation

# npm
npm i @yukiniro/react-github-corners -S
# yarn
yarn add @yukiniro/react-github-corners
# pnpm
pnpm add @yukiniro/react-github-corners

Usage

import React from "react";
import GithubCorners from "@yukiniro/react-github-corners"; // import the component
import "@yukiniro/react-github-corners/dist/style.css"; // import the style

const App = () => {
  return <GithubCorners href="https://github.com/Yukiniro/react-github-corners" />;
};

Props

NameTypeDefaultDescription
hrefstring-The link of your Github repository
sizenumber80The size of the corner
bgColorstring#151513The background color of the corner
colorstring#fffThe color of the octocat
positionstringrightThe position of the corner
zIndexnumber999999The z-index of the corner
classNamestring-The class name of the corner
styleobject-The style of the corner
1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.1.2

4 months ago

0.1.3

4 months ago

0.1.0

4 months ago