This is a (double) fork of the Sanity Plugin Table, migrated to Sanity Studio V3.
Forked form rdunk/sanity-plugin-table. Forked form MathisBullinger/sanity-plugin-another-table.
Install using npm
$ npm i sanity-plugin-table@v3
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',
},
],
};
The project can be built using npm run build
.
To test the plugin in a Sanity project, run npm run link-watch
, then sanity-plugin-table
can be tested inside the Sanity Studio. Follow the directions in plugin-kit for more details.