@storyblok/nuxt 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,6 +147,20 @@ Which is the short-hand equivalent to using `useStoryblokApi` and `useStoryblokB
|
|
|
147
147
|
</template>
|
|
148
148
|
```
|
|
149
149
|
|
|
150
|
+
#### Rendering Rich Text
|
|
151
|
+
|
|
152
|
+
You can easily render rich text by using the `renderRichText` function that comes with `@storyblok/nuxt` and a Vue computed property:
|
|
153
|
+
|
|
154
|
+
```html
|
|
155
|
+
<template>
|
|
156
|
+
<div v-html="articleContent"></div>
|
|
157
|
+
</template>
|
|
158
|
+
|
|
159
|
+
<script setup>
|
|
160
|
+
const articleContent = computed(() => renderRichText(blok.articleContent));
|
|
161
|
+
</script>
|
|
162
|
+
```
|
|
163
|
+
|
|
150
164
|
### API
|
|
151
165
|
|
|
152
166
|
#### useStoryblok(slug, apiOptions, bridgeOptions)
|