import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
import { c as cls } from './helpers.js';

const XTab = /*@__PURE__*/ proxyCustomElement(class XTab extends HTMLElement {
    constructor() {
        super();
        this.__registerHost();
        this.fluid = undefined;
        this.active = undefined;
        this.disabled = undefined;
        this.label = undefined;
        this.icon = undefined;
        this.badge = undefined;
        this.index = undefined;
    }
    /**
     * Render element
     */
    render() {
        return h(Host, { key: 'e0f4244ca5e73ac8f3a8c663d5f084d8799332ce', class: cls({ 'tab-disabled': this.disabled, 'tab-active': this.active, 'tab-fluid': this.fluid }) }, h("slot", { key: '4b0a7f5718f31642e58c8973a0143e122c481148' }));
    }
    get el() { return this; }
}, [4, "x-tab", {
        "fluid": [4],
        "active": [516],
        "disabled": [516],
        "label": [1],
        "icon": [1],
        "badge": [8],
        "index": [2]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["x-tab"];
    components.forEach(tagName => { switch (tagName) {
        case "x-tab":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, XTab);
            }
            break;
    } });
}

export { XTab as X, defineCustomElement as d };
