fix: FAQ in NuxtContent
FAQ converted to NuxtContent
This commit is contained in:
parent
8668b96eff
commit
48efe0f75b
14 changed files with 151 additions and 96 deletions
|
@ -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>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue