
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeYes! Sanity offers multiple ways to visually group fields within a document, and the best approach depends on what experience you're looking for:
If you want to organize fields into separate tabs, use Field Groups. This is Sanity's native feature for creating tabbed sections. Here's how to set up an SEO tab:
export default defineType({
name: 'myDocument',
type: 'document',
groups: [
{
name: 'content',
title: 'Content',
},
{
name: 'seo',
title: 'SEO',
},
],
fields: [
defineField({
name: 'title',
type: 'string',
group: 'content',
}),
defineField({
name: 'metaTitle',
type: 'string',
title: 'Meta Title',
group: 'seo', // Assigns to SEO tab
}),
defineField({
name: 'metaDescription',
type: 'text',
title: 'Meta Description',
group: 'seo',
}),
defineField({
name: 'ogImage',
type: 'image',
title: 'Social Share Image',
group: 'seo',
}),
],
})This creates actual tabs at the top of your document, separating fields into different views.
If you want to keep everything on one page but create collapsible sections with labels, use Fieldsets. Fieldsets create visual boundaries around related fields:
export default defineType({
name: 'myDocument',
type: 'document',
fieldsets: [
{
name: 'seo',
title: 'SEO Settings',
options: {
collapsible: true,
collapsed: false, // Set to true to start collapsed
},
},
],
fields: [
defineField({
name: 'title',
type: 'string',
}),
defineField({
name: 'metaTitle',
type: 'string',
title: 'Meta Title',
fieldset: 'seo', // Assigns to SEO fieldset
}),
defineField({
name: 'metaDescription',
type: 'text',
title: 'Meta Description',
fieldset: 'seo',
}),
defineField({
name: 'ogImage',
type: 'image',
title: 'Social Share Image',
fieldset: 'seo',
}),
],
})Fieldsets support options like:
collapsible: true - Makes the section expandable/collapsiblecollapsed: true - Starts the section collapsedcolumns: 2 - Arranges fields in a grid layoutBoth approaches help create an effective editor experience by reducing clutter and organizing fields logically. For an SEO section specifically, either approach works well—tabs if you have many other field groups, fieldsets if you want quick access without switching views.
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store