Skip to content

Instantly share code, notes, and snippets.

@sagar-gavhane
Created December 1, 2020 07:03
Show Gist options
  • Save sagar-gavhane/f4f54a52f1bf04e8bf42255dabaf3123 to your computer and use it in GitHub Desktop.
Save sagar-gavhane/f4f54a52f1bf04e8bf42255dabaf3123 to your computer and use it in GitHub Desktop.
[
{
"type":"Component",
"id":"ImageAndText",
"label":"Image and Text",
"internal":false,
"isGlobal":false,
"allowNestedComponents":true,
"description":"Image and Text Row",
"attributes":{
"image":{
"type":"Image",
"label":"Image",
"url":{
"type":"String",
"label":"URL",
"default":""
},
"altText":{
"type":"String",
"label":"Alt text",
"default":""
}
},
"title":{
"type":"StringType",
"label":"Title",
"default":""
},
"description":{
"type":"String",
"label":"Description",
"default":""
},
"ctaText":{
"type":"InvalidStringType",
"label":"Button text",
"default":""
},
"ctaLink":{
"type":"String",
"label":"Button link",
"default":""
},
"boxes":{
"type":"Array",
"label":"box",
"default":[
],
"allowNestedComponents":true,
"children":{
"type":"Shape",
"default":{
},
"children":{
"title":{
"type":"String",
"label":"box title",
"default":"box"
}
}
}
},
"buttons":{
"label":"my button",
"type":"Array",
"default":{
},
"allowNestedComponents":false,
"children":{
"type":"Shape",
"default":{
},
"children":{
"buttonTitle":{
"type":"String",
"label":"box title",
"default":""
}
}
}
}
}
},
{
"type":"Component",
"id":"RichText",
"label":"Rich Text Editor",
"internal":false,
"isGlobal":false,
"allowNestedComponents":false,
"attributes":{
"rich":{
"type":"RichText",
"label":"Rich text",
"default":""
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment