frontend/components/profiles/profile-fields.vue

19 lines
633 B
Vue
Raw Normal View History

2024-12-02 16:07:52 +01:00
<template>
<div class="flex flex-col gap-y-4">
<div v-for="field in fields" :key="field.name" class="flex flex-col gap-1 break-words">
<h3 class="font-semibold text-sm" v-render-emojis="emojis">{{ field.name }}</h3>
<div v-html="field.value" class="prose prose-sm prose-zinc dark:prose-invert" v-render-emojis="emojis"></div>
2024-12-02 16:07:52 +01:00
</div>
</div>
</template>
<script lang="ts" setup>
import type { CustomEmoji, Field } from "@versia/client/schemas";
import type { z } from "zod";
2024-12-02 16:07:52 +01:00
defineProps<{
fields: z.infer<typeof Field>[];
emojis: z.infer<typeof CustomEmoji>[];
2024-12-02 16:07:52 +01:00
}>();
</script>