0.1.0 • Published 4 years ago

list-element-example-igz v0.1.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

lit-element-example

To use a LitElement component in your code:


  1. From your project folder, install the component from npm.

    npm install lit-element-example
  2. Import the component.

    In a JavaScript module:

    import 'lit-element-example';

    In an HTML page:

    <script type="module">
    import './path-to/lit-element-example/lit-element-example.js';
    </script>

    Or:

    <script type="module" src="./path-to/lit-element-example/lit-element-example.js"></script>
  3. Add the component to your application or component:

    <lit-element-example></lit-element-example>
0.1.0

4 years ago