﻿<template>
  <button class="ui-button" :class="buttonClass">
    <span v-html="label"></span>
    <i v-if="caret" :class="caretClass"></i>
  </button>
</template>


<script>
  export default {
    name: 'uiButton',

    props: {
      label: {
        type: String,
        required: true
      },
      state: {
        type: String,
        default: 'default'
      },
      type: {
        type: String,
        default: 'action'
      },
      caret: String,
      caretPosition: {
        type: String,
        default: 'right'
      },
      disabled: Boolean
    },

    computed: {
      buttonClass() { return 'type-' + this.type + ' caret-' + this.caretPosition; },
      caretClass() { return 'fth-chevron-' + this.caret; }
    },

    mounted ()
    {
      
    },

    methods: {

    }
  }
</script>