1
0
mirror of https://github.com/Bubka/2FAuth.git synced 2024-12-18 21:21:59 +01:00
2FAuth/resources/js/components/Button.vue

37 lines
664 B
Vue
Raw Normal View History

2020-01-15 17:43:28 +01:00
<template>
<button
:type="nativeType"
:disabled="isLoading"
2020-01-15 17:43:28 +01:00
:class="{
'button': true,
2020-01-15 17:43:28 +01:00
[`${color}`]: true,
'is-loading': isLoading,
}">
2020-01-15 17:43:28 +01:00
<slot />
</button>
</template>
<script>
export default {
name: 'VButton',
props: {
color: {
type: String,
default: 'is-link'
},
nativeType: {
type: String,
default: 'submit'
},
isLoading: {
2020-01-15 17:43:28 +01:00
type: Boolean,
default: false
},
}
}
</script>