bulmil
Version:

55 lines (54 loc) • 1.7 kB
JavaScript
import { Component, Prop, h } from '@stencil/core';
export class Icon {
render() {
return (h("span", { class: {
icon: true,
[this.color]: Boolean(this.color),
[this.size]: Boolean(this.size),
} },
h("slot", null)));
}
static get is() { return "bm-icon"; }
static get originalStyleUrls() { return {
"$": ["icon.scss"]
}; }
static get styleUrls() { return {
"$": ["icon.css"]
}; }
static get properties() { return {
"color": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'has-text-info' | 'has-text-success' | 'has-text-warning' | 'has-text-danger'",
"resolved": "\"has-text-danger\" | \"has-text-info\" | \"has-text-success\" | \"has-text-warning\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Color"
},
"attribute": "color",
"reflect": false
},
"size": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'is-small' | 'is-medium' | 'is-large'",
"resolved": "\"is-large\" | \"is-medium\" | \"is-small\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Size"
},
"attribute": "size",
"reflect": false
}
}; }
}