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

var ARadioButton = /* @__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(ARadio, {
        ...attrs,
        ...props,
        "prefixCls": prefixCls.value
      }, {
        default: () => {
          var _a;
          return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
        }
      });
    };
  }
});

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