
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeYou can create a custom table view in the preview section of Sanity Studio that displays all published documents of a specific type, with each row being clickable to open the document in edit mode. Here's how to approach this:
Based on a solution from the Sanity community, you can use the Structure Builder API with a custom component by serializing a documentList and overriding it with your component:
S.listItem()
.title("Customers")
.child(
Object.assign(
S.documentList()
.filter('_type == "customer"')
.title("Customers")
.serialize(),
{
__preserveInstance: true,
key: 'customersTable',
id: 'customersTable',
type: 'component',
component: CustomersTableView,
}
),
)This approach maintains the internal document list behavior (so the pane router works correctly) while rendering your custom table component.
In your CustomersTableView component, you can:
For navigation, you have a few options:
usePaneRouter hook from Sanity to programmatically navigateIntentLink component from sanity/router to create links that open documents in new panesIf you want a ready-made solution, check out the Sanity Bulk Actions Table plugin. This plugin provides a table view with bulk actions, column selection, and document management capabilities that might meet your needs without custom development.
The key insight is that you can override the default documentList component while preserving its internal structure, which ensures the pane router behaves correctly when clicking rows to open documents for editing.
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