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: '71169e51514ded3e873988b2daad4d3d3bc3ea09', class: cls({ 'tab-disabled': this.disabled, 'tab-active': this.active, 'tab-fluid': this.fluid }) }, h("slot", { key: 'c02a6dc7be6618faec084f74988799d2742c231d' }));
    }
    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 };
