UNPKG

bulmil

Version:

![bulmil](https://user-images.githubusercontent.com/2362138/65766959-c721a080-e16f-11e9-9fb9-45a5a2ad0391.jpg)

55 lines (54 loc) 1.7 kB
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 } }; } }