1.0.1 • Published 3 years ago

sanity-plugin-fieldset-tabs v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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.