Created
November 29, 2020 03:19
-
-
Save 3200pro/cfc5c74314bff3503c0243e3cb5dc64b to your computer and use it in GitHub Desktop.
Sanity Schema - Shuffled Text - Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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