1
0
Files
AstralRinth/apps/frontend/src/templates/emails/dynamic/MarkdownDynamicEmail.vue
Calum H. 9ee0626e8b feat: dynamic email template using markdown (#4515)
* feat: markdown dynamic email template

* fix: lint and remove debug statements

* fix: lint issues
2025-10-08 19:05:23 +00:00

21 lines
408 B
Vue

<script setup lang="ts">
import { Heading, Markdown } from '@vue-email/components'
import StyledEmail from '../shared/StyledEmail.vue'
const props = defineProps<{
title: string
body: string
}>()
</script>
<template>
<StyledEmail :title="props.title">
<Heading as="h1" class="mb-2 text-2xl font-bold">
{{ props.title }}
</Heading>
<Markdown :source="props.body" />
</StyledEmail>
</template>