UNPKG

radh-ui

Version:

Stencil Component Starter

51 lines (50 loc) 1.44 kB
import { Component, h, Prop } from '@stencil/core'; export class CardImage { render() { return h("img", { class: "card-image", src: this.imgSrc, alt: this.imgAlt }); } static get is() { return "radh-card-image"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["radh-card-image.css"] }; } static get styleUrls() { return { "$": ["radh-card-image.css"] }; } static get properties() { return { "imgSrc": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": true, "optional": false, "docs": { "tags": [], "text": "" }, "attribute": "img-src", "reflect": false }, "imgAlt": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": true, "optional": false, "docs": { "tags": [], "text": "" }, "attribute": "img-alt", "reflect": false } }; } }