'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var useConfigInject = require('../../config-provider/src/hooks/useConfigInject.cjs');
var Radio = require('./Radio.cjs');
var context = require('./context.cjs');
var props = require('./props.cjs');

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

exports.default = ARadioButton;
//# sourceMappingURL=RadioButton.cjs.map
