<script>
export default {
  name: 'VButton',
  props: {
    color: {
      type: String,
      default: 'purple'
    },
    disable: {
      type: Boolean,
      default: false
    },
  },
}
</script>

<template>
  <button
    type="button"
    :class="`rounded-md bg-${color}-700 hover:bg-fuchsia-700 transition-all text-white p-2 ${disable ? 'opacity-50 cursor-auto' : 'cursor-pointer'}`"
    :disabled="disable"
  >
    <slot />
  </button>
</template>
