Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import { LitElement, html } from 'lit-element';
  2.  
  3. class BackofficeHeader extends LitElement {
  4. static get properties() {
  5. return {
  6. title: String,
  7. subtitle: String,
  8. };
  9. }
  10. render(){
  11. return html`<div>
  12. <h1>${this.title}</h1>${ props.subtitle && `<p>this.subtitle</p>`} <slot></slot>
  13. </div>`;
  14. }
  15. }
  16.  
  17. customElements.define('backoffice-header', MyElement);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement