1.0.4 • Published 3 years ago

@elementarium/lovepage-button v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Page Loves

A non-configuration button for allowing users to love your web pages and blog posts.

Simplest example

The button is a custom element that can be added directly to the page. Below there is a minimal example:

<head>
  <!-- add the button script -->
  <script src="dist/love-page.js"></script>
</head>
<body>
  <!-- add the button -->
  <love-page url="example.com/my-page" />
</body>

The above will render a love button, persisting loves counts per url.

Development

Clone the repo and install dependencies via yarn:

yarn

The project uses Vite for development, all the code can be found on the src directory. To start the development server run the command:

yarn dev
1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago