component formatting and types
This commit is contained in:
parent
c2a7d15eeb
commit
ce745c06e5
60 changed files with 464 additions and 301 deletions
13
components/dynamicZone/Section.vue
Normal file
13
components/dynamicZone/Section.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
<h1 class="text-center">{{ data?.title }}</h1>
|
||||
<p v-if="data?.description" class="text-center text-[#5c5c5c]">{{ data?.description }}</p>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { PropType } from "vue";
|
||||
import type DynamicZoneSection from "../../types/component/dynamic-zone/section";
|
||||
|
||||
defineProps({
|
||||
data: Object as PropType<DynamicZoneSection>,
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue