Skip to main content
100%

Gist 6a2c7e5c21355bc109f0c06e6a5a62c8

✓ Published0🌍 Public
HHypercubed
Last edited Apr 15, 2019
Created on Apr 15, 2019

This example demonstrates a minimal web component that renders a text-based status message using LitElement and Lit-html. It shows how to define a custom element with reactive properties and scoped styles, displaying the text “Web Components are great!” in green. The code uses the `lit-element@2` and `lit-html@1` libraries via an import map, with web components polyfilled by `@webcomponents/webcomponentsjs`. The example also relies on ES module shims for compatibility, and a package.json script configures the Airdrop CLI to manage dependencies. The data source is hardcoded as a static string, with no external data or visualization involved.

AI-generated description
MIT Licensed

Similar vizzes