0.0.10 • Published 1 year ago

buymeacoffee v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

buymeacoffee

buymeacoffee is a unofficial buymeacoffee.com Widget react components library.

Installation

To install the package, run the following command in your project directory:

npm install buymeacoffee

or

yarn add buymeacoffee

Usage

Import the package into your React component:

import WebsiteWidget from 'buymeacoffee'

Use the package in your component:

<WebsiteWidget name="kalanakt" color="FF5F5F" />

Props

buymeacoffee -> WebsiteWidget supports the following props:

  • name: your buymeacoffee.com username (requred : yes)
  • color: Website Widget color (default: "#FF813F") (available: "#BD5FFF" "#5F7FFF" "#40DCA5" "#FF5F5F")

Example

import React from 'react';
import WebsiteWidget from 'buymeacoffee';

const ExampleComponent = () => {
    return (
        <WebsiteWidget
        name="kalanakt" 
        color="FF5F5F"
        />
    );
}

export default ExampleComponent;

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

buymeacoffee is MIT.

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago