UNPKG

@scania/tegel

Version:
76 lines (75 loc) 2.49 kB
import { h, Host } from "@stencil/core"; /** * @slot <default> - <b>Unnamed slot.</b> For a link or button element. */ export class TdsHeaderDropdownListItem { constructor() { /** If the link should appear selected. */ this.selected = false; /** The size of the component. */ this.size = 'md'; } render() { return (h(Host, { key: '044ca1632bcfa67b268f2f46f6b3f803feabc603' }, h("div", { key: '43348d36bbbce184d43fda6cc4eead8fe1b94374', class: { 'component': true, 'component-selected': this.selected, } }, h("slot", { key: 'd6d036909bc7e83049d9c75add7ee84c68b5eba8' })))); } static get is() { return "tds-header-dropdown-list-item"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["header-dropdown-list-item.scss"] }; } static get styleUrls() { return { "$": ["header-dropdown-list-item.css"] }; } static get properties() { return { "selected": { "type": "boolean", "mutable": false, "complexType": { "original": "boolean", "resolved": "boolean", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "If the link should appear selected." }, "getter": false, "setter": false, "reflect": false, "attribute": "selected", "defaultValue": "false" }, "size": { "type": "string", "mutable": false, "complexType": { "original": "'md' | 'lg'", "resolved": "\"lg\" | \"md\"", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The size of the component." }, "getter": false, "setter": false, "reflect": true, "attribute": "size", "defaultValue": "'md'" } }; } static get elementRef() { return "host"; } }