import { defineComponent, createVNode, mergeProps } from 'vue';
import '../hooks/index.mjs';
import Radio, { radioProps } from './Radio.mjs';
import { useProvideRadioOptionTypeContext } from './context.mjs';
import useConfigInject from '../config-provider/hooks/useConfigInject.mjs';

var Button = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ARadioButton",
  inheritAttrs: false,
  props: radioProps(),
  setup(props, {
    slots,
    attrs
  }) {
    const {
      prefixCls
    } = useConfigInject("radio", props);
    useProvideRadioOptionTypeContext("button");
    return () => {
      return createVNode(Radio, mergeProps(attrs, props, {
        "prefixCls": prefixCls.value
      }), {
        default: () => {
          var _a;
          return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
        }
      });
    };
  }
});

export { Button as default };
//# sourceMappingURL=RadioButton.mjs.map
