Add ProseImg

This commit is contained in:
2025-04-01 12:31:13 +02:00
parent 82f0778b77
commit c4218161f6
2 changed files with 34 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
<script lang="ts" setup>
defineProps<{ src: string, label: string, caption?: string }>()
</script>
<template>
<div class="flex flex-col justify-center items-center prose-none my-8">
<img :src="src" :alt="label" class="w-full h-auto m-0 prose-none">
<p class="text-sm text-gray-500 dark:text-gray-300 prose-none">
{{ caption }}
</p>
</div>
</template>