'use strict';

var index = require('./index-CpWVsZ_u.js');

const dropdownTriggerButtonCss = () => `:host{display:inline-block}.rotate{transition:transform 0.2s ease-in-out;transform:rotate(-180deg);margin-top:0em}.icon{margin-top:0em;transition:transform 0.2s ease-in-out}`;

const DropdownItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    isOpen = false;
    theme = "default";
    variant;
    size = "m";
    disabled;
    hideArrow = false;
    render() {
        return (index.h("ifx-button", { key: '759bb9e7a4cba7f01a0a9a67abdf471d28aa1b70', variant: this.variant, theme: this.theme, size: this.size, disabled: this.disabled, class: "dropdown-trigger-button" }, index.h("slot", { key: 'cd4eaf62ffccd87a03eef11f6a1ffc3e9ebcfe4b' }), !this.hideArrow && (index.h("ifx-icon", { key: '0a03a5fdc28649588c060ef1f426bfbf0dc8b3d8', icon: "chevron-down-16", class: `icon${this.isOpen ? " rotate" : ""}` }))));
    }
};
DropdownItem.style = dropdownTriggerButtonCss();

exports.ifx_dropdown_trigger_button = DropdownItem;
//# sourceMappingURL=ifx-dropdown-trigger-button.entry.cjs.js.map

//# sourceMappingURL=ifx-dropdown-trigger-button.cjs.entry.js.map