Skip to content

Instantly share code, notes, and snippets.

@sagar-gavhane
Created October 30, 2020 05:39
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 sagar-gavhane/4f61f64c33defbcff446850625611460 to your computer and use it in GitHub Desktop.
Save sagar-gavhane/4f61f64c33defbcff446850625611460 to your computer and use it in GitHub Desktop.
descriptor file for testing nested components
[{"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":"String","label":"Title","default":""},"description":{"type":"String","label":"Description","default":""},"ctaText":{"type":"String","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