import { Host, h } from "@stencil/core";
/**
 * Very simple tab component. Use like a button, but with a caption.
 * Use standard onClick event to handle click.
 */
export class KlevuTab {
  constructor() {
    this.caption = undefined;
    this.active = undefined;
    this.disabled = undefined;
  }
  render() {
    return (h(Host, null, h("button", { class: {
        active: Boolean(this.active),
      }, disabled: Boolean(this.disabled) }, h("klevu-typography", { variant: "body-s" }, this.caption))));
  }
  static get is() { return "klevu-tab"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() {
    return {
      "$": ["klevu-tab.css"]
    };
  }
  static get styleUrls() {
    return {
      "$": ["klevu-tab.css"]
    };
  }
  static get properties() {
    return {
      "caption": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": true,
        "optional": false,
        "docs": {
          "tags": [],
          "text": "Title of the tab"
        },
        "attribute": "caption",
        "reflect": false
      },
      "active": {
        "type": "boolean",
        "mutable": false,
        "complexType": {
          "original": "boolean",
          "resolved": "boolean | undefined",
          "references": {}
        },
        "required": false,
        "optional": true,
        "docs": {
          "tags": [],
          "text": "Whether the tab is active"
        },
        "attribute": "active",
        "reflect": false
      },
      "disabled": {
        "type": "boolean",
        "mutable": false,
        "complexType": {
          "original": "boolean",
          "resolved": "boolean | undefined",
          "references": {}
        },
        "required": false,
        "optional": true,
        "docs": {
          "tags": [],
          "text": "Whether the tab is disabled"
        },
        "attribute": "disabled",
        "reflect": false
      }
    };
  }
}
//# sourceMappingURL=klevu-tab.js.map
