Skip to content

Instantly share code, notes, and snippets.

@3200pro
Created November 29, 2020 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3200pro/cfc5c74314bff3503c0243e3cb5dc64b to your computer and use it in GitHub Desktop.
Save 3200pro/cfc5c74314bff3503c0243e3cb5dc64b to your computer and use it in GitHub Desktop.
Sanity Schema - Shuffled Text - Part 2
export default {
title: 'Shuffled Text Section',
name: 'shuffledTextSection',
type: 'object',
fields: [
{
title: 'Phrase',
type: 'array',
name: 'phrase',
of: [
{
title: 'Shuffled Text',
name: 'shuffledText',
type: 'shuffledText'
},
{
title: 'Standard Text',
name: 'standardText',
type: 'standardText'
},
]
},
{
title: 'Text Style',
name: 'textStyle',
type: 'string',
options: {
list: [
{title: 'None', value: 'span'},
{title: 'H1', value: 'h1'},
{title: 'H2', value: 'h2'},
{title: 'H3', value: 'h3'},
{title: 'H4', value: 'h4'},
{title: 'H5', value: 'h5'},
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment