Skip to content

Commit a5ceff7

Browse files
committed
chore(skeleton): define global message component
1 parent c06aa53 commit a5ceff7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Diff for: components/Message.vue

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template>
2+
<div class="min-h-screen flex flex-grow items-center justify-center">
3+
<div class="rounded-lg bg-white p-8 text-center shadow-xl">
4+
<h1 class="mb-4 text-2xl font-light">
5+
{{ title }}
6+
</h1>
7+
<div class="text-sm">
8+
<slot name="text">
9+
{{ text }}
10+
</slot>
11+
</div>
12+
</div>
13+
</div>
14+
</template>
15+
16+
<script setup lang="ts">
17+
interface Props {
18+
title: string
19+
text?: string
20+
}
21+
22+
defineProps<Props>()
23+
</script>

0 commit comments

Comments
 (0)