Forked form rdunk/sanity-plugin-table.
Simply specify table
as a field type in your schema.
export default {
name: 'product',
title: 'Product',
type: 'document',
fields: [
{
name: 'sizeChart',
title: 'Size Chart',
type: 'table', // Specify 'table' type
},
],
};