UNPKG

@scania/tegel

Version:
70 lines (69 loc) 2.27 kB
import { h, Host } from "@stencil/core"; /** * @slot <default> - <b>Unnamed slot.</b> For a link or button element. */ export class TdsHeaderDropdownListItem { constructor() { this.selected = false; this.size = 'md'; } render() { return (h(Host, { key: '1dd37d8c57686fdde3bbf602cd2d327237ff9ee8' }, h("div", { key: 'ecbcceac23e94264aa3bfd253190c358d415492d', class: { 'component': true, 'component-selected': this.selected, } }, h("slot", { key: '0e02564e017aaea2a0e9336e64fb853ecf4db367' })))); } 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." }, "attribute": "selected", "reflect": false, "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." }, "attribute": "size", "reflect": true, "defaultValue": "'md'" } }; } static get elementRef() { return "host"; } }