0.1.3 • Published 4 years ago

yc-battery v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

YC-Battery

An example of a webcomponent using Lit-element.

Installation

npm install yc-battery

or using yarn:

yarn add yc-battery

Usage

Recommended way: in a lit template (see also, demo folder):

import { html, render } from 'lit-html';
import '../src/YCBattery.js';

const app = document.getElementById('myApp');

const template = html`
  <yc-battery .fillAmount=${30}></yc-battery>
`;

render(template, app);

Regular usage in html:

<!DOCTYPE html>
<html lang="en">
  <head>
    <script type="module">
      import 'yc-battery/yc-battery.js';
    </script>
  </head>
  <body>
    <yc-battery fillAmount="10"></yc-battery>
  </body>
</html>
0.1.3

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago