Skip to content

Commit 5633ecb

Browse files
committed
ui: allow customizing delete button variant
1 parent db6b994 commit 5633ecb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/runtime/components/firebase/FirebaseFileDeleteDialog.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ const props = defineProps({
3737
type: String,
3838
default: mdiDelete,
3939
},
40+
buttonVariant: {
41+
type: String as PropType<'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain' | undefined>,
42+
default: undefined,
43+
},
4044
buttonSize: {
4145
type: String,
4246
default: 'default',
@@ -107,6 +111,7 @@ async function submitForm() {
107111
<template>
108112
<span>
109113
<v-btn
114+
:variant="buttonVariant"
110115
:size="buttonSize"
111116
:prepend-icon="buttonIcon"
112117
:color="buttonColor"

0 commit comments

Comments
 (0)