Is there a way of composing a template in Lit using a dynamically derived Lit Element? I'm talking something like this: import { chooseCorrectCompo ...
Is there a way of composing a template in Lit using a dynamically derived Lit Element? I'm talking something like this: import { chooseCorrectCompo ...
(New to the Lit element environment, so apologies for the naive question) Code Summary The code below is a File Uploader web component made using Li ...
Minimal Reproducible Example First, here's a repo where the problem can be reproduced: https://github.com/wimdetroyer/litelement-ts-esbuild-axios t ...
I am new to lit specifically, and web components in general. I have built a web component for usage in Wix (as a custom element), just using straight ...
I am trying to transform this element into a standard web component using Lit. (https://www.w3schools.com/howto/howto_js_image_comparison.asp) I tota ...
I've been trying to make a Web Component with LitElement that works with server side rendering environments (SSR) like NextJS and VueJS, without the n ...
So i'm trying to testing on my button that run the function asynchronously. this is my button logic looks like. and this is my test i'm using li ...
I'm trying to create a unit test for my lit-html element using jest. I want to check if the click event is working as expected. To test an event that ...
I have a call like this: this._router.goto(`http://localhost:8000/${this.nav.selected}`); When I do relative, the page updates without the address ...
I have recently been learning about custom elements and Lit js. I am trying to style my components with the ::part pseudo-selector. This works in Fir ...
I want to dynamically add an attribute to a Lit anchor element but I can't figure out how to do it. Specifically I want to add the download attribute. ...
I have lit-element based forms that are reused for editing entities. As an example consider a name form with the following fields The user selects ...
Javascript tagged template strings like are really fantastic ways to do interesting things with each interpolated variable without them just becomi ...
Hope you are well. I have a lit element. I adding dynamically a DOM element: The problem is that I can't change the CSS of this element from my st ...
How to render component from string in litelement? It is possible or it is possible to convert string to TemplateResult? My code not working ...
I want to do the following: When the property "mobile" is changed, check to see if X is true, if so, set set a variable Y and call requestUpdate to r ...
Using lit 2.5.0 in combination with vite I run into an issue using the lit build-in directives. Following the docs I added an import to my lit js comp ...
I want to use web component Button (lit) in my project with similar tag. For example: if tag <button-test> exists on website then create tag < ...
Created a web component using LitElement and created a columnrange chart using highcharts in that, now I want to add the border radius only to the top ...
I have the most basic Lit code like this: import { property } from 'lit/decorators.js'; export class MyClass extends LitElement { @property() ro ...