Files
ui/test/mocks/MockModal.vue
Eugen Istoc a813ea700e test(useOverlay): add composable tests (#4482)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2025-07-10 12:04:18 +02:00

23 lines
409 B
Vue

<template>
<div class="mock-modal">
<h2>{{ title }}</h2>
<p>{{ description }}</p>
<button
@click="$emit('close', 'test-result')"
>
Close
</button>
</div>
</template>
<script setup lang="ts">
const { title = 'Test Modal', description = 'Test Description' } = defineProps<{
title?: string
description?: string
}>()
defineEmits<{
close: [value: string]
}>()
</script>