FmodeCode ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
..
directives ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
LICENSE ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
README.md ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
async-directive.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
async-directive.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
async-directive.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
async-directive.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
decorators.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
decorators.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
decorators.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
decorators.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive-helpers.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive-helpers.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive-helpers.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive-helpers.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
directive.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
html.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
html.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
html.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
html.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
index.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
index.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
index.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
index.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
logo.svg ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
package.json ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
polyfill-support.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
polyfill-support.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
polyfill-support.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
polyfill-support.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
static-html.d.ts ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
static-html.d.ts.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
static-html.js ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce
static-html.js.map ec05b37ac8 初始化:康师傅产品创新看板 v10 1 ay önce

README.md

Lit ### Simple. Fast. Web Components. [![Build Status](https://github.com/lit/lit/actions/workflows/tests.yml/badge.svg)](https://github.com/lit/lit/actions/workflows/tests.yml) [![Published on npm](https://img.shields.io/npm/v/lit.svg?logo=npm)](https://www.npmjs.com/package/lit) [![Join our Discord](https://img.shields.io/badge/discord-join%20chat-5865F2.svg?logo=discord&logoColor=fff)](https://lit.dev/discord/) [![Mentioned in Awesome Lit](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit)

Lit is a simple library for building fast, lightweight web components.

At Lit's core is a boilerplate-killing component base class that provides reactive state, scoped styles, and a declarative template system that's tiny, fast and expressive.

Documentation

See the full documentation for Lit at lit.dev

Overview

Lit provides developers with just the right tools to build fast web components:

  • A fast declarative HTML template system
  • Reactive property declarations
  • A customizable reactive update lifecycle
  • Easy to use scoped CSS styling

Lit builds on top of standard web components, and makes them easier to write:

import {LitElement, html, css} from 'lit';
import {customElement, property} from 'lit/decorators.js';

// Registers the element
@customElement('my-element')
export class MyElement extends LitElement {
  // Styles are applied to the shadow root and scoped to this element
  static styles = css`
    span {
      color: green;
    }
  `;

  // Creates a reactive property that triggers rendering
  @property()
  mood = 'great';

  // Render the component's DOM by returning a Lit template
  render() {
    return html`Web Components are <span>${this.mood}</span>!`;
  }
}

Once you've defined your component, you can use it anywhere you use HTML:

<my-element mood="awesome"></my-element>

Contributing

Please see CONTRIBUTING.md.