Skip to content

GoProjectOwner/lit-html-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lit-html examples

Repository with examples and design patterns for building web components using the LitElement base class, and rendering templates using lit-html.

Who is this for?

This repository is intended as a starting point for all people who want to write web components with LitElement. Some special sections are added for people migrating from PolymerElement.

How to use the examples

You can view the code of the examples by browsing through the src folder on github. The examples are divided into categories of complexity, and are ordered. Concepts are introduced one by one, so that you only see one new concept per example.

All the examples are working code, so you can clone the repository and run npm install + npm start.

Frequently asked questions

People starting with LitElement, especially those coming from PolymerElement, often have these questions:

Further reading

Note

This project is a community effort. The authors of this repository are not affiliated with Google or the Polymer team. Because LitElement and lit-html are still in early stages of development, best practices and examples will change and evolve over time.

Contributing

Contributions are appreciated, feel free to submit issues and PRs.

About

Examples for using the lit-html library and LitElement base class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.2%
  • HTML 16.8%