Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

Commit ba84e39

Browse files
committed
Add useFallbackSerializer prop details
1 parent 0906e79 commit ba84e39

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Import directly into your component or view:
2828

2929
```vue
3030
<template>
31-
<SanityBlocks :blocks="blocks" :serializers="serializers" />
31+
<SanityBlocks :blocks="blocks" :serializers="serializers" :use-fallback-serializer="true" />
3232
</template>
3333
3434
<script>
@@ -66,10 +66,11 @@ app.mount('#app');
6666

6767
The following props can be passed to the component.
6868

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 |
7374

7475
## Serializers
7576

0 commit comments

Comments
 (0)