anoblet / lit-utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spreadProps

const props = { foo: 'a', bar: 'b' };

render(html`
  <my-element ...=${spreadProps(props)}></my-element>
  `, document.getElementById('root'))

applyStyle

const style = css`
  :host {
    background: red;
  }
`

applyStyle(this.shadowRoot.querySelector("#myNode"), style);

About


Languages

Language:TypeScript 85.3%Language:JavaScript 14.7%