import PropTypes from '../_util/vue-types/index.mjs';
import { eventType } from '../_util/type.mjs';

function convertLegacyProps(type) {
  if (type === "danger")
    return { danger: true };
  return { type };
}
const buttonProps = () => ({
  prefixCls: String,
  type: String,
  htmlType: { type: String, default: "button" },
  shape: { type: String },
  size: {
    type: String
  },
  loading: {
    type: [Boolean, Object],
    default: () => false
  },
  disabled: { type: Boolean, default: void 0 },
  ghost: { type: Boolean, default: void 0 },
  block: { type: Boolean, default: void 0 },
  danger: { type: Boolean, default: void 0 },
  icon: PropTypes.any,
  href: String,
  target: String,
  title: String,
  onClick: eventType(),
  onMousedown: eventType()
});

export { buttonProps, convertLegacyProps, buttonProps as default };
//# sourceMappingURL=buttonTypes.mjs.map
