<template>
  <a
    v-if="href"
    class="btn-default"
    :class="classObject"
    :href="href"
  >
    <slot name="icon"></slot>
    <span v-if="hasDefaultSlot">
      <slot></slot>
    </span>
  </a>

  <button
    v-else
    class="btn-default"
    :class="classObject"
    :type="type"
  >
    <slot name="icon"></slot>
    <span v-if="hasDefaultSlot">
      <slot></slot>
    </span>
    <span v-if="text" v-html="text"></span>
  </button>
</template>

<style src="../../identity.css"></style>


<script src="./scripts.js"></script>