UNPKG

mwcpl

Version:

Master's Web Component Pattern Library

65 lines (64 loc) 1.82 kB
import { Component, h, Prop } from '@stencil/core'; export class MwcplFab { constructor() { /** * Label for the FAB. */ this.label = ''; /** * Creates a smaller of FAB. */ this.mini = false; } render() { return (h("button", null, h("slot", { name: "icon" }), h("span", null, this.label))); } static get is() { return "mwcpl-fab"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["mwcpl-fab.scss"] }; } static get styleUrls() { return { "$": ["mwcpl-fab.css"] }; } static get properties() { return { "label": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Label for the FAB." }, "attribute": "label", "reflect": false, "defaultValue": "''" }, "mini": { "type": "boolean", "mutable": false, "complexType": { "original": "boolean", "resolved": "boolean", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Creates a smaller of FAB." }, "attribute": "mini", "reflect": false, "defaultValue": "false" } }; } }