Add button loading state

This commit is contained in:
kolaente 2021-01-17 14:48:11 +01:00
parent 5ae4a10ade
commit eff83506cd
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@
<a
class="button"
:class="{
'is-loading': loading,
'is-primary': type === 'primary',
'is-outlined': type === 'secondary',
'is-text is-inverted has-no-shadow underline-none': type === 'tertary',
@ -25,6 +26,10 @@ export default {
type: String,
default: '',
},
loading: {
type: Boolean,
default: false,
},
},
}
</script>