buymeacoffee is a unofficial buymeacoffee.com Widget react components library.
To install the package, run the following command in your project directory:
npm install buymeacoffeeor
yarn add buymeacoffeeImport the package into your React component:
import WebsiteWidget from 'buymeacoffee'
Use the package in your component:
<WebsiteWidget name="kalanakt" color="FF5F5F" />
buymeacoffee -> WebsiteWidget supports the following props:
- name: your buymeacoffee.com username (requred : yes)
- color: Website Widget color (default:
"#FF813F") (available:"#BD5FFF""#5F7FFF""#40DCA5""#FF5F5F")
import React from 'react';
import WebsiteWidget from 'buymeacoffee';
const ExampleComponent = () => {
return (
<WebsiteWidget
name="kalanakt"
color="FF5F5F"
/>
);
}
export default ExampleComponent;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.
buymeacoffee is [MIT].