1.0.5 • Published 1 year ago

wc-likes v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

wc-likes

Native web-component for likes in any pages. Very simple for use\customize and integration with any js framework like vue\react\angular\other, support best web development practises. See also - vue-wc-likes based on this web-component

Install

npm i wc-likes

Demo pages

see dist/index.html with integration this web-component

see demo in English demo see demo in Russian demo

Commands

available package commands

`npm run sass' - build scss styles
`npm run tsc' - run typescript
`npm run babel-minify' - minify code after typescript
`npm run build' - build all stpes 1.sass 2.tsc 3.babel-minify

Custom element demo

<!-- alreday liked -->
<wc-likes class="-liked" value="155" data-hint="Already liked"></wc-likes>
<!-- fetch state -->
<wc-likes class="-fetch" value="1250"></wc-likes>
<!-- disabled -->
<wc-likes class="-disabled" value="11"></wc-likes>
<!-- try it -->
<wc-likes value="0"></wc-likes>

Enojoy!

dev by strokoff.ru - make web not war) See real integration in webislife.ru - web dev blog for ru developers

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago