"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index = require("../../../hooks/use-namespace/index.js");
const constants = require("./constants.js");
const buttonGroup = require("./button-group.js");
const Vue = require("vue");
var button_group_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Vue.defineComponent({
  name: "ElButtonGroup",
  __name: "button-group",
  props: buttonGroup.buttonGroupProps,
  setup(__props) {
    const props = __props;
    Vue.provide(constants.buttonGroupContextKey, Vue.reactive({
      size: Vue.toRef(props, "size"),
      type: Vue.toRef(props, "type")
    }));
    const ns = index.useNamespace("button");
    return (_ctx, _cache) => {
      return Vue.openBlock(), Vue.createElementBlock("div", { class: Vue.normalizeClass([Vue.unref(ns).b("group"), Vue.unref(ns).bm("group", props.direction)]) }, [Vue.renderSlot(_ctx.$slots, "default")], 2);
    };
  }
});
exports.default = button_group_vue_vue_type_script_setup_true_lang_default;
