@framejs/renderer-lit-html

A Framejs renderer for lit-html

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@framejs/renderer-lit-html
2471.0.94 years ago5 years agoMinified + gzip package size for @framejs/renderer-lit-html in KB

Readme

@framejs/renderer-lit-html

FrameJS rendererer for lit-html.
lit-html is a great templating extension when working with complex elements. Read more about lit-html.

Install

$ npm install @framejs/core @framejs/renderer-lit-html

Usage

import { CustomElement } from '@framejs/core';
import { withLitHtml, html } from '@framejs/renderer-lit-html';

@CustomElement({
    tag: 'my-element'
})
class MyElement extends withLitHtml(HTMLElement) {
    render() {
        return html`I'm so lit!`;
    }
}