You're viewing docs for an older version of Lit. Click here for the latest version.

Internal styles

This is an internal only page to demonstrate the styling of our documentation.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Heading 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

This is a link to another page or section. So is this.

This is bold. This is italic. This is bold italic.

  1. This is the first item
  2. This is the second item
    1. This is a nested item
  • This is the first item
  • This is the second item
    • This is a nested item
BrowserModule SpecifiersModern JSWeb Components
Chrome908067
Safaribuild1310
Firefoxbuild7263
Edge (Chromium)build8079
Edge 14-18buildbuildpolyfill
Internet Explorer 11buildbuildpolyfill

Informational asides are lower priority. These notes fill in information that's peripheral to the main discussion. Possibly interesting but not essential. They start with run-in heads so the reader can quickly assess whether the aside is relevant to their interests. They should look less important than the surrounding text.

Do not bathe with toasters. The toaster won't enjoy it, and neither will you. These higher profile admonitions should be more noticeable.

Inheritance diagram showing LitElement inheriting from ReactiveElement, which in turn inherits from HTMLElement. LitElement is responsible for templating; ReactiveElement is responsible for managing reactive properties and attributes; HTMLElement is the standard DOM interface shared by all native HTML elements and custom elements.

The component's render method can return anything that Lit can render. Typically, it returns a single TemplateResult object (the same type returned by the html tag function).