opnform/client/components/global/NotionPage.vue

33 lines
546 B
Vue
Raw Normal View History

2023-12-09 14:47:03 +00:00
<template>
2024-01-02 16:06:55 +00:00
<notion-renderer v-if="!loading" :block-map="blockMap"/>
<div class="p-6 flex items-center justify-center" v-else>
<loader class="w-6 h-6"/>
</div>
2023-12-09 14:47:03 +00:00
</template>
<script>
import {NotionRenderer} from 'vue-notion'
export default {
name: 'NotionPage',
components: {NotionRenderer},
props: {
2024-01-02 16:06:55 +00:00
blockMap: {
type: Object
},
loading: {
type: Boolean,
2023-12-09 14:47:03 +00:00
required: true
}
},
}
</script>
<style lang="scss">
@import "vue-notion/src/styles.css";
2023-12-09 14:47:03 +00:00
.notion-blue {
@apply text-nt-blue;
}
</style>