Skip to content

kh411d/clap-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clap-it (Frontend)

a medium-like Clap button/WebComponent made with Svelte custom element API

Install

$ node -v
v11.15.0

$ npm install
$ npm run build && npm run start

Usage

Move public/build/bundle.js to your webhost and then add this code to your web page,

<script src='bundle.js'></script>
<clap-it style="" api=""/>
Tag Attributes
  • style, css need to be inline i.e. width:60px; height:60px; margin-top:30px; fill:red; stroke:red; color:red;
  • api, Base API URL i.e http://0.0.0.0:3000, make use of your own API

Demo

Live on CODEPEN