import { defineComponent, computed, createVNode, mergeProps } from 'vue';
import '../hooks/index.mjs';
import '../_util/props-util/index.mjs';
import classNames from '../_util/classNames.mjs';
import useStyle from './style/index.mjs';
import Element, { skeletonElementProps } from './Element.mjs';
import initDefaultProps from '../_util/props-util/initDefaultProps.mjs';
import useConfigInject from '../config-provider/hooks/useConfigInject.mjs';

const skeletonButtonProps = () => {
  return {
    ...skeletonElementProps(),
    size: String,
    block: Boolean
  };
};
const SkeletonButton = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ASkeletonButton",
  props: initDefaultProps(skeletonButtonProps(), {
    size: "default"
  }),
  setup(props) {
    const {
      prefixCls
    } = useConfigInject("skeleton", props);
    const [wrapSSR, hashId] = useStyle(prefixCls);
    const cls = computed(() => classNames(prefixCls.value, `${prefixCls.value}-element`, {
      [`${prefixCls.value}-active`]: props.active,
      [`${prefixCls.value}-block`]: props.block
    }, hashId.value));
    return () => {
      return wrapSSR(createVNode("div", {
        "class": cls.value
      }, [createVNode(Element, mergeProps(props, {
        "prefixCls": `${prefixCls.value}-button`
      }), null)]));
    };
  }
});

export { SkeletonButton as default, skeletonButtonProps };
//# sourceMappingURL=Button.mjs.map
