@claromentis/design-system
Version:
Claromentis Design System Component Library
61 lines (60 loc) • 1.41 kB
JavaScript
import { h } from '@stencil/core';
export class Popover {
constructor() {
this.href = undefined;
this.img = undefined;
}
render() {
return (h("div", { class: "user-list-item square" }, h("a", { href: this.href, target: "_blank" }, h("img", { alt: "user avatar", src: this.img }))));
}
static get is() { return "cla-user-list-item"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["cla-user-list-item.scss"]
};
}
static get styleUrls() {
return {
"$": ["cla-user-list-item.css"]
};
}
static get properties() {
return {
"href": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "href",
"reflect": false
},
"img": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "img",
"reflect": false
}
};
}
}