1
0
mirror of https://github.com/Bubka/2FAuth.git synced 2025-03-21 19:07:05 +01:00
2FAuth/resources/js/components/formElements/Button.vue
2023-12-01 15:29:26 +01:00

33 lines
675 B
Vue

<script setup>
const props = defineProps({
color: {
type: String,
default: 'is-link'
},
nativeType: {
type: String,
default: 'submit'
},
isLoading: {
type: Boolean,
default: false
},
isDisabled: {
type: Boolean,
default: false
}
})
</script>
<template>
<button
:type="nativeType"
:disabled="isLoading || isDisabled"
:class="{
'button': true,
[`${color}`]: true,
'is-loading': isLoading,
}">
<slot />
</button>
</template>