vue-kofi
Display Ko-fi widgets in your Vue components with ease.
Installation
npm:
npm install vue-kofi --save
Yarn:
yarn add vue-kofi
Browser import:
Usage
Import the component in your Vue mount script
;; Vue;// ...
Or, if you don't want to use it globally:
;// ... // ... components: VueKofi // ...;
Insert this into your template to display the button:
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
uid | String | yes | - | Your Ko-fi ID which you can get from your Ko-fi widget page. (e.g.: A6251W51) |
color | String | no | "#46b798" | The background color of your Ko-fi button. |
text | String | no | "Support Me on Ko-fi" | The text that appears on the button. |
This is an open-source project and is not affiliated with or endorsed by Ko-fi.com