This repository was archived by the owner on Aug 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Import directly into your component or view:
28
28
29
29
``` vue
30
30
<template>
31
- <SanityBlocks :blocks="blocks" :serializers="serializers" />
31
+ <SanityBlocks :blocks="blocks" :serializers="serializers" :use-fallback-serializer="true" />
32
32
</template>
33
33
34
34
<script>
@@ -66,10 +66,11 @@ app.mount('#app');
66
66
67
67
The following props can be passed to the component.
68
68
69
- | Prop | Required | Description | Type |
70
- | ------------- | -------- | -------------------------------------------------- | ------ |
71
- | ` blocks ` | Yes | Block content retrieved from Sanity. | Array |
72
- | ` serializers ` | No | Any custom serializers you want to use. See below. | Object |
69
+ | Prop | Required | Description | Type |
70
+ | ----------------------- | -------- | ----------------------------------------------------- | ------- |
71
+ | ` blocks ` | Yes | Block content retrieved from Sanity. | Array |
72
+ | ` serializers ` | No | Any custom serializers you want to use. See below. | Object |
73
+ | ` useFallbackSerializer ` | No | Show fallback component if custom type doe not exist. | Boolean |
73
74
74
75
## Serializers
75
76
You can’t perform that action at this time.
0 commit comments