all files / src/components/ Button.vue

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                                 
<template>
  <div class="snotifyToast__buttons">
    <button type="button"
            v-for="button in buttons"
            :class="{'snotifyToast__buttons--bold': button.bold}"
            @click="button.action && button.action(id, value)">
      {{button.text}}
    </button>
  </div>
</template>
 
<script>
  export default {
    props: ['buttons', 'value', 'id']
  }
</script>