← Plugins

Table

Basic table support

sanity-plugin-table

Sanity plugin that implements a table schema type and input component.

Installing

via npm

Install using the Sanity CLI.

sanity install table

Usage

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
  ],
};

License

MIT