Files
laravel-manager-packagist/resources/blocks/vue/RichText.vue
T
2026-12-04 18:41:33 +00:00

13 lines
408 B
Vue

<script setup lang="ts">
import { classes } from './support';
defineProps<{ data: Record<string, any>; style?: Record<string, string> }>();
</script>
<template>
<section :class="['mb-block mb-rich-text', classes(style)]">
<!-- `body_html` is made on the server from Markdown with raw HTML escaped -->
<div class="mb-inner mb-prose" v-html="data.body_html" />
</section>
</template>