<template>
  <a
    :class="[
      'link',
      disabled && 'cursor-not-allowed',
      underline && !disabled && 'underline'
    ]"
    :href="disabled ? null : href"
  >
    <slot />
  </a>
</template>

<script>

export default {
  props: {
    underline: {
      type: Boolean,
      default: false
    },
    href: String,
    disabled: Boolean
  }
}
</script>
