2023-08-14 12:06:46 +02:00

55 lines
1.0 KiB
TypeScript

import {defineField} from 'sanity'
export default defineField({
name: 'body',
title: 'Body',
type: 'array',
of: [
{
lists: [
{title: 'Bullet', value: 'bullet'},
{title: 'Numbered', value: 'number'},
],
marks: {
decorators: [
{
title: 'Italic',
value: 'em',
},
{
title: 'Strong',
value: 'strong',
},
],
},
// Paragraphs
type: 'block',
},
// Custom blocks
// {
// name: 'blockAccordion',
// type: 'module.accordion',
// },
// {
// name: 'blockCallout',
// type: 'module.callout',
// },
// {
// name: 'blockGrid',
// type: 'module.grid',
// },
// {
// name: 'blockImages',
// type: 'module.images',
// },
// {
// name: 'blockInstagram',
// type: 'module.instagram',
// },
// {
// name: 'blockProducts',
// type: 'module.products',
// },
],
})