wf4/app/components/RichText/Link.vue
webfussel b014d31577 ADD: RichText
Added RichText system
2025-02-21 19:15:20 +01:00

12 lines
331 B
Vue

<template>
<a :href="href" :target="target" class="text inline-flex-row" :class="{ reverse : icon && icon.position === 'end' }">
<Icon v-if="icon" :name="icon.name" mode="svg" />
{{ content }}
</a>
</template>
<script setup lang="ts">
import type { RichTextLink } from './Types'
defineProps<RichTextLink>()
</script>