UNPKG

bulmil

Version:

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

61 lines (60 loc) 1.74 kB
import { Component, Prop, h } from '@stencil/core'; export class Panel { constructor() { /** * CSS Classes */ this.class = ''; } render() { return (h("nav", { class: { panel: true, [this.color]: Boolean(this.color), } }, h("slot", null))); } static get is() { return "bm-panel"; } static get originalStyleUrls() { return { "$": ["panel.scss"] }; } static get styleUrls() { return { "$": ["panel.css"] }; } static get properties() { return { "class": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "CSS Classes" }, "attribute": "class", "reflect": false, "defaultValue": "''" }, "color": { "type": "string", "mutable": false, "complexType": { "original": "'is-primary' | 'is-link' | 'is-info' | 'is-success' | 'is-danger' | 'is-warning'", "resolved": "\"is-danger\" | \"is-info\" | \"is-link\" | \"is-primary\" | \"is-success\" | \"is-warning\"", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Panel color" }, "attribute": "color", "reflect": false } }; } }