@appnest/lit-util

A collection of useful functions for projects based on lit-html

Usage no npm install needed!

<script type="module">
  import appnestLitUtil from 'https://cdn.skypack.dev/@appnest/lit-util';
</script>

README

@appnest/lit-util

This project is no longer maintained.

Downloads per month Dependencies NPM Version Contributors MIT License

What is this?

This project is a collection of functions I tend to use when building projects based on lit-html. The goal is to give you some inspiration and make your life a little easier when finding yourself in need of the same functionality.

Install the dependency

npm i @appnest/lit-util

Use @customElement() to define your custom elements.

Use the customElement decorator to define your custom elements. Simply give it a tag-name and your custom element will be defined.

@customElement("hello-component")
export class HelloComponent extends LitElement {
    ...
}

🎉 License

Licensed under MIT.