Add Medium Inspired Claps Button To Posts – Applause Button

Category: Javascript , Recommended | February 26, 2019
AuthorColinEberhardt
Last UpdateFebruary 26, 2019
LicenseMIT
Tags
Views1,113 views
Add Medium Inspired Claps Button To Posts – Applause Button

Applause Button is a JavaScript component to generate a Medium.com like claps button which allows the user to clap for your post/article.

How to use it:

Install & download.

# Yarn
$ yarn add applause-button
# NPM
$ npm install applause-button --save

Import the Applause Button’s JavaScript and Stylesheet.

<link rel="stylesheet" href="https://unpkg.com/applause-button/dist/applause-button.css">
<script src="https://unpkg.com/applause-button/dist/applause-button.js"></script>

Create a basic claps button on the page.

<applause-button />

Apply custom CSS styles to the button.

<applause-button style="height:32px; width:32px" color="black" />

Enable/disable multiple claps.

<applause-button multiclap="true">

Log the claps for a specified URL.

<applause-button multiclap="true" url="cssscript.com"/>

You Might Be Interested In:


Leave a Reply