fix: FAQ in NuxtContent

FAQ converted to NuxtContent
This commit is contained in:
webfussel 2025-06-10 20:03:42 +02:00
parent 8668b96eff
commit 48efe0f75b
14 changed files with 151 additions and 96 deletions

View file

@ -1,16 +1,15 @@
<template>
<details class="Spoiler" :open="open" @click="toggle">
<summary><Icon class="icon" :name="icon" mode="svg" />{{ header }}</summary>
<details class="Spoiler" :open="open">
<summary @click="toggle"><Icon class="icon" :name="icon" mode="svg" />{{ title }}</summary>
<div>
<p v-for="text in content">{{ text }}</p>
<slot />
</div>
</details>
</template>
<script setup lang="ts">
type Props = {
header: string
content: string[]
title: string
}
defineProps<Props>()