Rich Portable Text
This commit is contained in:
9
src/components/RichText.svelte
Normal file
9
src/components/RichText.svelte
Normal file
@@ -0,0 +1,9 @@
|
||||
<script>
|
||||
// NOTE: I think there could be a better way to do this
|
||||
import { PortableText } from '@portabletext/svelte';
|
||||
let { value } = $props();
|
||||
</script>
|
||||
|
||||
<div id="test" class="prose prose-base lg:prose-lg **:text-ecsess-200">
|
||||
<PortableText {value} />
|
||||
</div>
|
||||
Reference in New Issue
Block a user