<template>
  <button @click="onClick()" :style="{backgroundColor: color}" class="btn">Add Task</button>
</template>

<script>
export default {
  name: 'AppButton',
  props: {
    text: String,
    color: String
  },
  methods: {
    onClick () {
      console.log('Click')
    }
  }
}
</script>

<style scoped></style>
