Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

kofi-button

logankuzyk156MIT1.1.1TypeScript support: included

The Ko-fi donate button as a React component.

React, Ko-fi, Button

readme

kofi-button

The Ko-fi button you know and love, as a React component!

Installation

In your terminal:

npm install --save kofi-button

Usage

Here is a React functional component which returns a styled Ko-fi button.

import KofiButton from "kofi-button"

export const StyledKofiButton = () => {
  return (
    <KofiButton color="#0a9396" title="Donate" kofiID="N4N31JDNX" />
  )
}

Output:

Example Ko-fi button