inzynieria_frontend/components/Button.vue

26 lines
351 B
Vue
Raw Normal View History

2021-12-05 20:23:00 +01:00
<template>
<button :disabled="disabled">
2021-12-05 20:23:00 +01:00
{{ text }}
2021-12-05 21:40:56 +01:00
<fa v-if="icon" :icon="icon" />
2021-12-05 20:23:00 +01:00
</button>
</template>
<script>
export default {
props: {
text: {
type: String,
default: ''
2021-12-05 21:40:56 +01:00
},
icon: {
type: Array,
default: null
},
disabled: {
type: Boolean,
default: false
2021-12-05 20:23:00 +01:00
}
}
}
</script>