Last active
June 7, 2022 17:42
-
-
Save davidwarrington/5507c9ff4ebc44f8dd66bc4e9da3c689 to your computer and use it in GitHub Desktop.
Shopify User Snippets
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
"Schema, link": { | |
"prefix": "schema: link", | |
"body": [ | |
"{", | |
"\t\"label\": \"${1:Link Text}\",", | |
"\t\"id\": \"${2:link_text}\",", | |
"\t\"type\": \"text\"", | |
"},", | |
"{", | |
"\t\"label\": \"${3:Link URL}\",", | |
"\t\"id\": \"${4:link_url}\",", | |
"\t\"type\": \"url\"", | |
"}", | |
], | |
}, | |
"Schema, colours": { | |
"prefix": "schema: colours", | |
"body": [ | |
"{", | |
"\t\"label\": \"${1:label}\",", | |
"\t\"id\": \"${2:id}\",", | |
"\t\"type\": \"select\",", | |
"\t\"options\": [", | |
"\t\t{", | |
"\t\t\t\"label\": \"Black\",", | |
"\t\t\t\"value\": \"black\"", | |
"\t\t}", | |
"\t\t{", | |
"\t\t\t\"label\": \"White\",", | |
"\t\t\t\"value\": \"white\"", | |
"\t\t}", | |
"\t\t{", | |
"\t\t\t\"label\": \"Red\",", | |
"\t\t\t\"value\": \"red\"", | |
"\t\t}", | |
"\t]", | |
"}", | |
], | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment