conlang.phundrak.com/docs/.vuepress/components/ImgFigure.vue

22 lines
322 B
Vue
Raw Normal View History

2023-02-26 18:20:43 +00:00
<template>
2024-06-21 06:27:34 +00:00
<figure>
<img :alt="alt" :src="src" />
<figcaption><slot></slot></figcaption>
</figure>
2023-02-26 18:20:43 +00:00
</template>
<script setup lang="ts">
const props = defineProps<{
src: string;
alt?: string;
}>();
</script>
<style>
figcaption {
text-align: center;
margin-top: 1rem;
margin-bottom: 1rem;
}
</style>