mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
18 lines
425 B
Vue
18 lines
425 B
Vue
<script setup lang="ts">
|
|
import type { PropertyMeta } from 'vue-component-meta'
|
|
|
|
const props = defineProps<{
|
|
prop: PropertyMeta
|
|
}>()
|
|
|
|
const links = computed(() => props.prop.tags?.filter((tag: any) => tag.name === 'link'))
|
|
</script>
|
|
|
|
<template>
|
|
<ProseUl v-if="links?.length">
|
|
<ProseLi v-for="link in links" :key="link.name">
|
|
<MDC :value="link.text ?? ''" class="my-1" />
|
|
</ProseLi>
|
|
</ProseUl>
|
|
</template>
|