@scania/tegel
Version:
Tegel Design System
48 lines (47 loc) • 1.68 kB
JavaScript
import { h } from "@stencil/core";
/**
* @slot <default> - <b>Unnamed slot.</b> For the breadcrumb elements.
*/
export class TdsBreadcrumbs {
render() {
var _a;
(_a = this.host.children[this.host.children.length - 1]) === null || _a === void 0 ? void 0 : _a.classList.add('last');
return (h("nav", { key: 'f24c1dd40a5bf741d3538c1bc5e536c45a9a6b12', "aria-label": this.tdsAriaLabel }, h("div", { key: '955ea954c1a161e2c4b639947f191b3b4a22957a', role: "list", class: "tds-breadcrumb" }, h("slot", { key: '9466ab7b58a6953d79af70ac38cdc5466362dc6c' }))));
}
static get is() { return "tds-breadcrumbs"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["breadcrumbs.scss"]
};
}
static get styleUrls() {
return {
"$": ["breadcrumbs.css"]
};
}
static get properties() {
return {
"tdsAriaLabel": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string | undefined",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "The value to be used for the aria-label attribute"
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "tds-aria-label"
}
};
}
static get elementRef() { return "host"; }
}