UNPKG

@scania/tegel

Version:
61 lines (60 loc) 1.92 kB
import { h, Host } from "@stencil/core"; export class TdsSideMenuUserLabel { constructor() { this.heading = undefined; this.subheading = undefined; } render() { return (h(Host, { key: 'fcd180821724e5e7ad1d8574a3adaf428f124b47' }, this.heading, this.subheading && h("div", { key: 'f1d86f3f1f200de394e771ea71839e5e9a94ba10', class: "subheading" }, this.subheading))); } static get is() { return "tds-side-menu-user-label"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["side-menu-user-label.scss"] }; } static get styleUrls() { return { "$": ["side-menu-user-label.css"] }; } static get properties() { return { "heading": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": true, "optional": false, "docs": { "tags": [], "text": "The heading text." }, "attribute": "heading", "reflect": false }, "subheading": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The subheading text." }, "attribute": "subheading", "reflect": false } }; } }