'use strict';

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

var vue = require('vue');
require('../hooks/index.js');
var Radio = require('./Radio.js');
var context = require('./context.js');
var useConfigInject = require('../config-provider/hooks/useConfigInject.js');

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

exports.default = Button;
//# sourceMappingURL=RadioButton.js.map
