Add line breaks to description

This commit is contained in:
2025-09-11 22:51:23 +02:00
parent 86a66aad37
commit 5d4e802796
7 changed files with 53 additions and 19 deletions
+26
View File
@@ -0,0 +1,26 @@
<script setup lang="ts">
withDefaults(
defineProps<{
tag?: string;
text: string;
css?: string;
}>(),
{
tag: 'p',
css: ''
}
);
</script>
<template>
<component
:is="tag"
v-for="(line, i) in text.split('\n')"
:key="i"
:class="css"
>
{{ line }}
</component>
</template>
<style scoped></style>