feat: Update button component (#10362)

This commit is contained in:
Sivin Varghese
2024-10-29 14:00:24 +05:30
committed by GitHub
parent f73798a1aa
commit 0689f59a05
34 changed files with 477 additions and 488 deletions

View File

@@ -99,14 +99,15 @@ defineExpose({ open, close });
<div class="flex items-center justify-between w-full gap-3">
<Button
v-if="showCancelButton"
variant="ghost"
variant="faded"
color="slate"
:label="cancelButtonLabel || t('DIALOG.BUTTONS.CANCEL')"
class="w-full bg-n-alpha-2 hover:bg-n-alpha-3"
class="w-full"
@click="close"
/>
<Button
v-if="showConfirmButton"
:variant="type === 'edit' ? 'default' : 'destructive'"
:color="type === 'edit' ? 'blue' : 'ruby'"
:label="confirmButtonLabel || t('DIALOG.BUTTONS.CONFIRM')"
class="w-full"
:is-loading="isLoading"