/hello-web-components

A simple starter <hello-world /> web component written in typescript, using lit. Unit tested with jest and e2e tested with playwright.

Primary LanguageTypeScriptMIT LicenseMIT

hello-web-components

A simple starter <hello-world /> web component written in typescript, using lit. Unit tested with node test runner and e2e tested with playwright.

Gzip Bundle Size Build Status Coverage Status Known Vulnerabilities

npm version npm downloads

Usage

Clone the repository and modify it to your needs

git clone --depth 1 https://github.com/fernandopasik/hello-web-components.git

Install the package in your project and import the component

npm i hello-web-components lit
import { html, render } from 'lit';
import 'hello-web-components';

const test = () => html`<hello-world who="web components"></hello-world>`;

render(test(), document.body);

License

MIT (c) 2020 Fernando Pasik