@scania/tegel
Version:
Tegel Design System
50 lines (49 loc) • 1.65 kB
JavaScript
import { h, Host } from "@stencil/core";
/**
* @slot <default> - <b>Unnamed slot.</b> For a native <code><a></code> element.
*/
export class TdsBreadcrumb {
constructor() {
/** Boolean for the current link */
this.current = false;
}
render() {
return (h(Host, { key: 'f1a223cf44e435b547b42382e8b3d47979c71793', role: "listitem" }, h("div", Object.assign({ key: '41baa33ae1474121ae4512ddf89fb960670d1cea', class: { current: this.current } }, (this.current ? { 'aria-current': 'page' } : {})), h("slot", { key: '8f14f28f7e9824e76886a1d49f15d3404666771a' }))));
}
static get is() { return "tds-breadcrumb"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["breadcrumb.scss"]
};
}
static get styleUrls() {
return {
"$": ["breadcrumb.css"]
};
}
static get properties() {
return {
"current": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Boolean for the current link"
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "current",
"defaultValue": "false"
}
};
}
}