DEV Community

Cover image for Create a Web Component with LitElement
Gabriel Mayta
Gabriel Mayta

Posted on

11 7

Create a Web Component with LitElement

Two weeks ago I started to play with Web Components. I think that Web Components is a great approach to build reusable components.

So I want to share with you the repositories where I worked. I also created a scaffolding to generate a custom-element with all you need.

Custom Elements:

After tried the potential of custom elements I created another project with Web Components support. For this purpose I used Lit-element a library developed by Polymer team to support Web Components.

Web Components:

While I writing this post Chrome, Safari and Firefox support Web Components and Microsoft announced they are working to bring Web Components to Edge.

If you need to support IE11 you can integrate webcomponents library that works fine.

What do you think about Web Components?

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (2)

Collapse
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

Very cool!

Collapse
 
grandemayta profile image
Gabriel Mayta

Thanks Benny!

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay