All Projects β†’ AJLoveChina β†’ vue-clap-button

AJLoveChina / vue-clap-button

Licence: MIT license
πŸ‘ A Medium like clap button

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-clap-button

Codeblock Beautifier
A chrome extension for highlighting codes of Medium Articles
Stars: ✭ 109 (+263.33%)
Mutual labels:  medium
Docker tutorial
Code and helper scripts for article on Medium "How Docker Can Help You Become A More Effective Data Scientist"
Stars: ✭ 145 (+383.33%)
Mutual labels:  medium
Transport Eta
Twitch streamed πŸŽ₯playground repo, README speaks to you.
Stars: ✭ 223 (+643.33%)
Mutual labels:  medium
Bypass Paywalls Chrome Clean
Bypass Paywalls Clean for Chrome (no Google Analytics, lot of updates/bug-fixes and custom sites)
Stars: ✭ 125 (+316.67%)
Mutual labels:  medium
Micro Medium Api
Microservice for fetching the latest posts of Medium with GraphQL.
Stars: ✭ 138 (+360%)
Mutual labels:  medium
Medium Style Confirm
medium.com style confirm dialog
Stars: ✭ 164 (+446.67%)
Mutual labels:  medium
Blurimageview
BlurImageView, you can load your image progressively like Medium does.First show user a blurry image, At the same time, load the real image, once loaded, replace the blurry one automatically
Stars: ✭ 1,334 (+4346.67%)
Mutual labels:  medium
Medium Zoom
πŸ”ŽπŸ–Ό A JavaScript library for zooming images like Medium
Stars: ✭ 2,799 (+9230%)
Mutual labels:  medium
My Medium Articles
List of my blog posts in the Medium
Stars: ✭ 143 (+376.67%)
Mutual labels:  medium
Epidemiology101
Epidemic Modeling for Everyone
Stars: ✭ 215 (+616.67%)
Mutual labels:  medium
Interesting People On Medium
Python script that finds interesting users from your Medium network to interact with
Stars: ✭ 126 (+320%)
Mutual labels:  medium
Bypass Paywalls Chrome Clean
Bypass Paywalls Clean for Chrome (no Google Analytics, lot of updates and bug-fixes)
Stars: ✭ 132 (+340%)
Mutual labels:  medium
Medium
Independent telecommunication environment
Stars: ✭ 171 (+470%)
Mutual labels:  medium
Darker Medium
Read Medium stories with happy eyes!
Stars: ✭ 123 (+310%)
Mutual labels:  medium
React Progressive Loader
Utility to load images and React components progressively, and get code splitting for free
Stars: ✭ 224 (+646.67%)
Mutual labels:  medium
Medium
πŸ“° Developer versions of my Medium.com articles
Stars: ✭ 100 (+233.33%)
Mutual labels:  medium
Pymedium
Unofficial Medium Python Flask API and SDK
Stars: ✭ 153 (+410%)
Mutual labels:  medium
cm-page-builder
Page builder package like notion
Stars: ✭ 29 (-3.33%)
Mutual labels:  medium
Dat Medium
P2P Markdown Blog for Beaker inspired by Medium.
Stars: ✭ 225 (+650%)
Mutual labels:  medium
Sharect
πŸ”— A lightweight JavaScript library to let users share their text selections to social networks.
Stars: ✭ 192 (+540%)
Mutual labels:  medium

A Medium like clap button. Inspired by react-clap-button

Install

The recommended way is using npm

npm install vue-clap-button --save

Also you can insert script tag in your html file after vue script

<script src="dist/vue-clap-button.js"></script>

Usage

In your entry script

import Vue from 'vue'
import vueClapButton from 'vue-clap-button'
Vue.use(vueClapButton);

Then in your .vue file

<vue-clap-button />

It is done! Really simple to use ? Yes ❀

Want a complex example ? see following guide

Attributes

parameter description type enum value default value
icon specify a icon String good, star, love good
size change the size of icon, in pixel Number - 50
maxClick How many times can I love/like it? Number - 1
bgColor background color of icon String - #FFF
colorActive color for icon with claps String - #F56C6C
colorNormal normal or initial color for icon without claps String - #909399
initClicked for button which initial state is clicked Number - 0

Events

event name description callback parameter
cancel user cancel all claps on it -
clap user give one love on it total claps given now (type : number)

Methods

method name description return value
getClaps get total claps type:Number

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].