UNPKG

@seidhr/sanity-plugin-muna-schemas

Version:

Muna or ᛗᚢᚾᚨ means remember in norse. Muna is a schema for the Sanity Studio that enables detailed descriptions of cultural heritage objects and knowledge about their contexts as well as pages about them (or anything else really.)

72 lines (70 loc) 1.3 kB
import { BiGrid } from 'react-icons/bi' export default { name: 'GridBlock', type: 'object', title: 'Rutenett', titleEN: 'Grid', description: 'Et rutenett (grid) med tekstinnhold', icon: BiGrid, fieldsets: [ { name: 'subtitle', title: 'Undertittel', options: { collapsible: true, collapsed: true }, }, ], options: { semanticSanity: { exclude: true } }, fields: [ { name: 'disabled', title: 'Avslått?', titleEN: 'Disabled', type: 'boolean', }, { name: 'label', title: 'Tittel', titleEN: 'Title', type: 'string', }, { name: 'subtitle', title: 'Undertittel', titleEN: 'Subtitle', fieldset: 'subtitle', type: 'string', }, { name: 'items', title: 'Blokker', titleEN: 'Items', type: 'array', of: [ { type: 'CardBlock' }, ], }, { name: 'anchor', title: 'Anker', titleEN: 'Anchor', description: 'Brukes til å lage en ankerlenke', descriptionEN: 'Used for anchor link', type: 'string', }, ], preview: { select: { title: 'label' }, prepare({ title }) { return { title, subtitle: 'Grid' } } } }