How to create a page builder with repeater functionality in Sanity.io
defineField({
name: 'lists',
type: 'array',
of: [
{
name: 'list',
type: 'object',
fields: [
{
name: 'title',
type: 'string',
},
{
name: 'items',
type: 'array',
of: [
{
name: 'item',
type: 'string',
},
],
},
]
},
],
}),Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.