0.7.1 • Published 2 years ago

react-kofi-button v0.7.1

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

react-kofi-button

GitHub Deployment Workflow Status version weekly downloads code style: prettier GitHub Stars Ko-fi

React Components to link to your Ko-fi profile.

How to use

Installation

With npm

npm i react-kofi-button

or yarn

yarn add react-kofi-button

<KofiButton />

Displays a configurable button that scales to the current font size and links to the profile page of the configured user.

Importing

import { KofiButton } from "react-kofi-button";

Examples

These buttons would all lead to https://ko-fi.com/costasak on click, since the username property is set to "costasak" on all of them.

Default preset
<KofiButton username="costasak" label="Support me" />

Default preset example GIF

Thin preset
<KofiButton
  username="costasak"
  label="Thin preset"
  preset="thin"
  backgroundColor="kofiRed"
/>

Thin preset example GIF

Skinny preset
<KofiButton
  username="costasak"
  label="Skinny preset"
  preset="skinny"
  backgroundColor="kofiGrey"
/>

Skinny preset example GIF

Properties

PropertyRequired?DefaultDescription
usernameRequired"costasak"Your Ko-fi username, which appears in the URL to your profile.
labelOptional"Support Me on Ko-fi"The text on the button.
titleOptional""Text that shows on hovering the button.
presetOptional""One of several presets that change the style of the button. See examples.
backgroundColorOptional"kofiBlue"The background color of the button. Can be one of the named Ko-fi colors (kofiBlue, kofiRed, kofiYellow or kofiGrey) or any valid CSS color value.
animationOptionaltrueWhether the Ko-fi logo should be animated. Accepts true, "true", "on_hover", false and "false". The "on_hover" option causes the logo to only be animated when the button is hovered.
0.7.1

2 years ago

0.7.0

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago