UNPKG

rahulrsingh09-stenciltest2

Version:

Stencil Component Starter

74 lines (73 loc) 1.68 kB
import { Component, Prop, h } from '@stencil/core'; import { format } from '../../utils/utils'; export class MyComponent { getText() { return format(this.first, this.middle, this.last); } render() { return h("div", null, "Hello, World! I'm ", this.getText()); } static get is() { return "my-component"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["my-component.css"] }; } static get styleUrls() { return { "$": ["my-component.css"] }; } static get properties() { return { "first": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The first name" }, "attribute": "first", "reflect": false }, "middle": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The middle name" }, "attribute": "middle", "reflect": false }, "last": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The last name" }, "attribute": "last", "reflect": false } }; } }