Skip to content
forked from sanity-io/table

Table schema type and input component for Sanity Studio

License

Notifications You must be signed in to change notification settings

dschlabach/table-1

Repository files navigation

Sanity Table Plugin

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.

example

Install

Install using npm

$ npm i sanity-plugin-table@v3

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

Development

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.

About

Table schema type and input component for Sanity Studio

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 89.8%
  • JavaScript 9.4%
  • Shell 0.8%