Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { LitElement, html } from 'lit-element';
- class BackofficeHeader extends LitElement {
- static get properties() {
- return {
- title: String,
- subtitle: String,
- };
- }
- render(){
- return html`<div>
- <h1>${this.title}</h1>${ props.subtitle && `<p>this.subtitle</p>`} <slot></slot>
- </div>`;
- }
- }
- customElements.define('backoffice-header', MyElement);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement