sanity-plugin-fieldset-tabs

no guarantees of stability!

Usage no npm install needed!

<script type="module">
  import sanityPluginFieldsetTabs from 'https://cdn.skypack.dev/sanity-plugin-fieldset-tabs';
</script>

README

sanity-plugin-fieldset-tabs

DISCLAIMER: VERY VERY ALPHA!!

no guarantees of stability!

screenshot

yarn add sanity-plugin-fieldset-tabs

then

import {FieldsetTabs} from 'sanity-plugin-fieldset-tabs'

const mySchema = {
  name: 'movie',
  type: 'document',
  title: 'Movie',
  inputComponent: FieldsetTabs,
  fieldsets: [{ name: 'tabA' }, { name: 'tabB' }],
  fields: [
    {
      name: 'title',
      type: 'string',
      fieldset: 'tabA',
    },
    {
      name: 'description',
      type: 'array',
      of: [{type: 'block'}]
      fieldset: 'tabB',
    },
  ],
};

every field must belong to a fieldset for now.