Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Import directly into your component or view:

```vue
<template>
<SanityBlocks :blocks="blocks" :serializers="serializers" />
<SanityBlocks :blocks="blocks" :serializers="serializers" :use-fallback-serializer="true" />
</template>

<script>
Expand Down Expand Up @@ -66,10 +66,11 @@ app.mount('#app');

The following props can be passed to the component.

| Prop | Required | Description | Type |
| ------------- | -------- | -------------------------------------------------- | ------ |
| `blocks` | Yes | Block content retrieved from Sanity. | Array |
| `serializers` | No | Any custom serializers you want to use. See below. | Object |
| Prop | Required | Description | Type |
| ----------------------- | -------- | ----------------------------------------------------- | ------- |
| `blocks` | Yes | Block content retrieved from Sanity. | Array |
| `serializers` | No | Any custom serializers you want to use. See below. | Object |
| `useFallbackSerializer` | No | Show fallback component if custom type doe not exist. | Boolean |

## Serializers

Expand Down
Loading