:title="title"
:class="{ 'border border-l-4 border-l-theme-danger': isDanger }"
:closeHandler="cancelHandler"
+ class="px-6 py-4"
>
+ <!-- Title -->
+ <div v-if="title" class="mb-6 text-xl">{{ title }}</div>
<!-- Message -->
<div class="mb-6">{{ message }}</div>
<!-- Buttons -->
>
<!-- Modal -->
<div
- class="relative max-w-[500px] grow rounded-lg border border-theme-border bg-theme-background px-6 py-4 shadow-lg"
+ class="relative max-w-[500px] grow rounded-lg border border-theme-border bg-theme-background shadow-lg"
:class="$attrs.class"
@keyup.esc="close"
>
@click="closeHandler"
class="absolute right-1 top-1"
/>
- <!-- Title -->
- <div v-if="title" class="mb-6 text-xl">{{ title }}</div>
<slot></slot>
</div>
</div>
inheritAttrs: false,
});
const props = defineProps({
- title: { type: String },
showClose: { type: Boolean },
closeHandlerOverride: Function,
});
<template>
- <Modal v-model="isVisible" class="px-0 py-0 border-none">
+ <Modal v-model="isVisible">
<SearchInput
- class="px-5 py-4"
+ class="px-5 py-4 border-none"
@search="toggleHandler"
@keyup.esc="toggleHandler"
/>